How to let user send email from windows form

  • Thread starter Thread starter RA
  • Start date Start date
R

RA

Hi

I have a contact us button that when the user clicks it I want it to open
the user default mail form put the To information with the name whom this
email will be sent to and the rest is up to the user to put the subject and
message and then he can send it. Basicaly I Just want to open an email with
the 'To' field already set. How do I do it if I am using c# windows forms?

Thanks
 
RA,

That's pretty simple. What you can do is make a call to the static
Start method on the Process class, passing in a URL with the mailto scheme.
The format is as follows:

mailto:<email address>

Basically, replace <email address> with the email address of the person
you want to mail. The kernel will then open up the default email client
using the email address that was supplied as the recipient.

Hope this helps.
 
Back
Top