ShellExecute mailto: with Outlook 2003 |
Post Reply |
Author | |
RDOlivaw
Newbie Joined: 02 February 2005 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 02 February 2005 at 11:23am |
I'm using ShellExecute to pass a mailto: command line to the default mail client on user's PCs (in this case Outlook). The code line sent for Outlook 2000 is: MailTo:User@mymailserver.com?Subject=Medical QualificationWaiver Consults statistics &body=Report for December 2004: &file="C:\MedAccess\Dec20042SIF5.pdf" where the &file= string is a file to be attached to the messge. On PCs using Outlook 2003, however, an error indicating a bad switch is returned and Outlook won't open. Removing the " marks from the filename in the &file= string allows Outlook to open with no error, however the file is not attached to the message automatically, as it is with Outlook 2000. Anyone have any hints on how the command line has changed from 2000 to 2003? Thanks. |
|
RDO
|
|
divyesh
Newbie Joined: 15 February 2007 Location: India Status: Offline Points: 1 |
Post Options
Thanks(0)
|
First of all this code is also not working with outlook 2000.
and the code Replace to use for 2002 and above is:
&attachments in place of &file
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |