how to outlookexpress

I

Ismail Rajput

how can i call MS outlookexpress from my form button to send a new message
and set its mail subject?
 
J

Julie

Ismail said:
how can i call MS outlookexpress from my form button to send a new message
and set its mail subject?

Execute:

mailto:[email protected]?subject=test

This will create a message addressed to '(e-mail address removed)' and set the subject
to 'test'.
 
M

Mike Kitchen

Here is some code that should do it for you

using System.Diagnostics;

string toEmail = "(e-mail address removed)";
string subject = "Love the Program";
string body = "Thanks a lot";
string message = string.Format( "mailto:{0}?subject={1}&body={2}", toEmail,
subject, body );

Process.Start( message );

See here for sample application

http://www.publicjoe.f9.co.uk/csharp/snip/snip007.html

Hope this helps

Publicjoe
C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Snippets at http://www.publicjoe.f9.co.uk/csharp/snip/snippets.html
 

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

Top