Home   Free Applications   Code Snippets   Fun Stuff 
 
 You are here: Home > Code Snippets > C#
Register   Login  

 
Site Navigation


Print Print this page
Email E-mail this page
Bookmark Add to Favorites

 
how to launch the systems default email client

Posted by on Friday, October 17, 2003 (EST)

The following is how to launch the systems default email client with a new message while setting the to,
subject, and message body.
using System.Text;
using System.Diagnostics;
string toEmail = "pwelter@hotmail.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);

Comments:

my default email client is NOT outlook express
By ? on Saturday, January 17, 2004 (EST)
My default email client is Mozilla, yet this code launches Outlook. Thanks Microsoft

Reply to this Comment

how do I send and receive e-mails?
By ? on Tuesday, March 16, 2004 (EST)
I'm new to this service, how do I send and receive e-mails?

Reply to this Comment

how do I send and receive e-mails?
By ? on Tuesday, March 16, 2004 (EST)
I'm new to this service, how do I send and receive e-mails?

Reply to this Comment

¬
By ? on Thursday, April 08, 2004 (EST)

you know, Ladies and Gentlemen, we live in a hostile world

 

Reply to this Comment

outlook
By ? on Tuesday, May 11, 2004 (EST)
in your web browser goto tools --> options --> programs --> select your default email client

Reply to this Comment

Process.Start vs. Help.ShowHelp
By ? on Tuesday, November 30, 2004 (EST)
If you use Help.ShowHelp as opposed to Process.Start, your application would not require full trust. Great for NTD apps, etc.

Reply to this Comment

shun kare chhe
By ? on Thursday, February 10, 2005 (EST)
HAn to hostaile life man tun jivato hashe hun to modern jamana man j jivun chhun samjyo neeeeeeeeeeee

Reply to this Comment

launch default email client
By ? on Thursday, August 25, 2005 (EST)

i have some problems with my mail.I can,t sand mail//?????

Reply to this Comment

How to get message from Body
By ? on Sunday, August 28, 2005 (EST)

After running the default mail client, if the user entered some text into body how to access the text from that body.

Reply to this Comment

To Hell With Microsoft
By ? on Tuesday, February 07, 2006 (EST)

Thanks To Microsoft I have spent two days just finding how to add an attachment to the mail and I am not even yet been able to figure out how to add an attachment. And Big MNC's and paid Websites do have the solution but are not willing to share that thing.

 

 

Reply to this Comment

launch your email default client
By ? on Wednesday, February 22, 2006 (EST)
How do I launch default email client

Reply to this Comment

how do i fefault my email clint
By ? on Monday, March 27, 2006 (EST)

i cant open my email on my home page someone plz help me with this. thank you

Reply to this Comment

Add Your Comment



Top
 
CNET News.com


Tech news and business reports by CNET News.com. Focused on information technology, core topics include computers, hardware, software, networking, and Internet media.

  • Security Bites 113: The security of Chrome
    Billy Hoffman of HP Web Security talks about Google's new browser, how it handles Javascript and what it means for Web 2.0 security.

  • Are Demo and TechCrunch50 fragmenting their audiences?
    With both events scheduled to start Monday, many press, as well as venture capitalists and others are having to choose which one to attend.

  • A user guide to following DemoFall and TechCrunch50
    More than 100 products are going to be introduced during the week of September 8. Will they be any good?

  • What's McCain doing in front of my junior high?
    Speculation has it that it was a goof-up that had the Republican nominee standing in front of Walter Reed Middle School during his acceptance speech. In any case, the image brings back memories for CNET News' Ina Fried.

  • Microsoft tries to reclaim Windows' image
    After years of letting Apple's attack ads go unanswered, software maker sets out on difficult, costly journey of trying to take back control of what Windows stands for.


    Copyright 1995-2008 CNET Networks, Inc. All rights reserved. Last Refreshed 9/5/2008 3:27:04 PM
  •