Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > General Discussion
  New Posts New Posts RSS Feed - ShellExecute mailto: with Outlook 2003
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ShellExecute mailto: with Outlook 2003

 Post Reply Post Reply
Author
Message
RDOlivaw View Drop Down
Newbie
Newbie


Joined: 02 February 2005
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote RDOlivaw Quote  Post ReplyReply Direct Link To This Post Topic: ShellExecute mailto: with Outlook 2003
    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
Back to Top
divyesh View Drop Down
Newbie
Newbie


Joined: 15 February 2007
Location: India
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote divyesh Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2007 at 12:41am
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
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.