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