Solved

How to open a new mail in default email program (outlook) with subject and body message

Posted on 2004-05-02
4
416 Views
Last Modified: 2010-04-15
I have a c# program that have a "Compose Email" button. When you press this button, the program retrieves some data from the database and creates a "to" string, "subject" string and "body" string. I have done this part. But then I want my program to execute the default mail program (normally outlook/outlook express) and start up a new mail where the "to", "subject", and "body" fields are filled out with the three strings I have created. I don't want the mail to be sent automatically, the user still has to press the send button. Can anybody please help me with this??
0
Comment
Question by:astensland
  • 2
4 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 10973525
Use this:
System.Diagnostics.Process.Start("mailto:hi@hello.com?subject=testletter&body=content");
0
 

Author Comment

by:astensland
ID: 10975047
Brilliant emoreau!!! Thanx alot...
0
 

Expert Comment

by:kevlarkevin
ID: 11201380
I get Access Is Denied when Using this - Can you help?
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 11201752
kevlarkevin, post your own question!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now