Solved

Possible to launch outlook and add an attachment?

Posted on 2006-06-09
2
284 Views
Last Modified: 2008-03-17
hello,

We are supposed to come up with a way to launch outlook and add an attachment progamatically. We don't have to worry about any other mail clients at this time. We don't want to use SMTPMail. Is it possible to add an attachment? I know how to use their default mail client and create a mail using mailto (like below) but as far as I know, for security reasons, mailto will not allow attachments.

using System.Text;
using System.Diagnostics;

...

string toEmail = "testr@test.com";
string subject = "This is a test Subject";
string body = "This is a test email message";
string message = string.Format("mailto:{0}?subject={1}&body={2}",     toEmail, subject, body);

Process.Start(message);

But I don't think i'll get anywhere with this. Any ideas?

Thanks!
0
Comment
Question by:PoeticAudio
2 Comments
 
LVL 2

Accepted Solution

by:
bdsmithback earned 500 total points
Comment Utility
You can use the Outlook Object Library

http://support.microsoft.com/default.aspx?id=310263
0
 
LVL 6

Author Comment

by:PoeticAudio
Comment Utility
Thanks!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now