Programmatically create an email message with attachments in OL2003

  • Thread starter Thread starter Brian Orrell
  • Start date Start date
B

Brian Orrell

I need to programmatically create a new Outlook email message with the To:
Subject: Body: and Attachments already there.

The key problem is with the attachments. I'm using Outlook 2003. I've
tried multiple different mailto: parameters and they all fail.

mailto:[email protected]&subject=Test&body=BodyTest&attachment="c:\image.jpg"

This knowledge base article does not help:
http://support.microsoft.com/default.aspx?scid=kb;en-us;312346&Product=ol2002

It refers to a Url:MailTo File Type and that file type isn't listed in my
file types listing.

MailTo works just fine without the attachments.

Anyone have suggestions for how to cause Outlook to popup with a new email
message window including attachments?

Any and all help greatly appreciated....
 
I don't believe Outlook supports an attachment mailto: parameter. What
programming environment are you targeting?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



message I need to programmatically create a new Outlook email message with the To:
Subject: Body: and Attachments already there.

The key problem is with the attachments. I'm using Outlook 2003. I've
tried multiple different mailto: parameters and they all fail.

mailto:[email protected]&subject=Test&body=BodyTest&attachment="c:\image.jpg"

This knowledge base article does not help:
http://support.microsoft.com/default.aspx?scid=kb;en-us;312346&Product=ol2002

It refers to a Url:MailTo File Type and that file type isn't listed in my
file types listing.

MailTo works just fine without the attachments.

Anyone have suggestions for how to cause Outlook to popup with a new email
message window including attachments?

Any and all help greatly appreciated....
 
You can use Outlook's Application.CreateItem method, then set properties and
add attachments to the resulting MailItem.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



message I'm using .NET... so any COM or .NET solution will work as well.
 
Back
Top