Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / January 2008

Tip: Looking for answers? Try searching our database.

Opening a new mail message with an attachment..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JimJob - 03 Jan 2008 17:02 GMT
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
Ken Slovak - [MVP - Outlook] - 03 Jan 2008 18:05 GMT
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.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi All,
>
[quoted text clipped - 8 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.