Launch Outlook express with attachment

  • Thread starter Thread starter Nicholas Paldino [.NET/C# MVP]
  • Start date Start date
N

Nicholas Paldino [.NET/C# MVP]

Thejus,

Launching outlook express is the easy part. You can use the Process
class to do this. However, what do you mean by "with attachment". Do you
mean that you want to open a new message dialog with a file attached? If
this is the case, I don't know that you can do it. Assuming that OE is your
default mail browser, you can easily open up the url mailto:<email address>
and it will open up the default mail composer window for the system.

However, getting an attachment on there is a different story, I don't
know that OE provides some sort of automation interface.

Hope this helps.
 
Try this:

using System.Diagnostics;
string sentEmail = "(e-mail address removed)";
string subject = "I love dotNET";
string body = "This is the message body";
string msg = string.Format( "mailto:{0}?subject={1}&body={2}", sentEmail ,
subject, body);
Process.Start( msg);
 
You've seem to miss the point entirely, why don't you take some time to
actually read what I said and then comment on it.

Thanx,

Thejus
 

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

Back
Top