How do I launch my default mail recipent programmatically from my C# application?

Hey howzit,

When you right click a file and click Sent To>Mail Recipient, it opens a new instance of your default mail recipient e.g. Outlook. How do I achieve this level of functionality from my C# application




Answer this question

How do I launch my default mail recipent programmatically from my C# application?

  • One Touch

    Unfortunately, mailto won't let you specify attachments that way.

  • duck thing

    Which is the way to open Outlook Express and attach file Do you have any references for this


  • D.G.

    Hey Chris,

    Thanks that works. Is there anyway I can specify which files to include as attachments



  • filali-boon

    You can use the mailto specification's listed in this page. Don't ignore the html talk.

    In that document you can see that you need something like this:


    Process.Start( "mailto:pj.vandesande@gmail.com subject=My subject&body=Body!");



  • Brad_Dunn

    Prepend the email address with "mailto:" text, and use it as a parameter in Process.Start method call:




    System.Diagnostics.Process.Start("mailto:<email address here>");




    Regards,

    -chris

  • How do I launch my default mail recipent programmatically from my C# application?