How to start Outlook express with subject?

  • Thread starter Thread starter david
  • Start date Start date
D

david

I have an windows .NET application.
I want to click a button to start outlook express to send email.

Not only start Outlook express, but also pass information to fill int the
subject and content field.

Thanks a lot.

David
 
david said:
I have an windows .NET application.
I want to click a button to start outlook express to send email.

Not only start Outlook express, but also pass information to fill int
the subject and content field.

Thanks a lot.

David

using System.Diagnostics;

Process p = new Process();
p.StartInfo.UseShellExecute = true;
p.StartInfo.FileName = "mailto:" + address + "?subject=" + subject +
"&body=" + body;
p.Start();

You can add "BCC=asdf" and "CC=asdf" also.

- Pete
 
Thanks Pete for your great help.

Pete C. said:
using System.Diagnostics;

Process p = new Process();
p.StartInfo.UseShellExecute = true;
p.StartInfo.FileName = "mailto:" + address + "?subject=" + subject +
"&body=" + body;
p.Start();

You can add "BCC=asdf" and "CC=asdf" also.

- Pete
 
Back
Top