Opening a new mail message with an attachment..

J

JimJob

Hi All,

I have created a C# app and i need to open a new mail message with an
attachment contained in the message. I have found the code below but no way
of attaching anything via code - can you help? I will just need to attach the
same attachment for every email - say test.txt

System.Diagnostics.Process.Start("mailto....)

Thanks
 
K

Ken Slovak - [MVP - Outlook]

Use the Outlook object model for that, you can attach a file and do whatever
else you want. Lots of code samples for Outlook automation, including C#
code at www.outlookcode.com.
 

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