how can i call MS outlookexpress from my form button to send a new message and set its mail subject?
I Ismail Rajput Apr 4, 2004 #1 how can i call MS outlookexpress from my form button to send a new message and set its mail subject?
J Julie Apr 4, 2004 #2 Ismail said: how can i call MS outlookexpress from my form button to send a new message and set its mail subject? Click to expand... Execute: mailto:[email protected]?subject=test This will create a message addressed to '(e-mail address removed)' and set the subject to 'test'.
Ismail said: how can i call MS outlookexpress from my form button to send a new message and set its mail subject? Click to expand... 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 Apr 5, 2004 #3 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
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