Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

email button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
-D- - 27 Apr 2006 19:46 GMT
Is there a way to create an email button user control that when clicked,
opens a user's email client and populates the to: field with a specified
email address and attaches the document to the email??  Not sure if this was
possible?

Thanks.
Karl E. Peterson - 27 Apr 2006 20:45 GMT
> Is there a way to create an email button user control that when
> clicked, opens a user's email client and populates the to: field with
> a specified email address and attaches the document to the email??
> Not sure if this was possible?

Yes and no.  Depends on the client.  Most don't support attachments in that
manner, though Outlook does.  What you do is the same as for any other
hyperlink, by calling it with ShellExecute.  See
http://vb.mvps.org/samples/HyperJmp for an example, if you're unfamiliar.

So, to do a mail link, it'd be something like:

mailto:sballmer@microsoft.com?subject=Support%20ClassicVB!&cc=bgates@microsoft.com

But, as I said, very few clients will act on the &attachment parameter.
Signature

Working without a .NET?
http://classicvb.org/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.