Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 452
  • Last Modified:

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

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
astensland
Asked:
astensland
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
Use this:
System.Diagnostics.Process.Start("mailto:hi@hello.com?subject=testletter&body=content");
0
 
astenslandAuthor Commented:
Brilliant emoreau!!! Thanx alot...
0
 
kevlarkevinCommented:
I get Access Is Denied when Using this - Can you help?
0
 
Éric MoreauSenior .Net ConsultantCommented:
kevlarkevin, post your own question!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now