Programmatically create an email message with attachments in OL2003


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....
 
Ad

Advertisements

S

Sue Mosher [MVP-Outlook]

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....
 
B

Brian Orrell

I'm using .NET... so any COM or .NET solution will work as well.
 
Ad

Advertisements

S

Sue Mosher [MVP-Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top