Invoking Default email client without querying registry entry

We have a windows form application in wich we need to invoke the default email client. The simplest way to implement is to query the registry entry to find the mail client and executing it by calling Process.start(). But we want to know any other best way available ( any managed api available to find and invoke the default mail client instead of querying the registry )


Answer this question

Invoking Default email client without querying registry entry

  • bill_csharper

    Ahhh, You dont need to know or check registry for your default emal client just do this:

    System.Diagnostics.Process.Start("mailto:xxxxxx@hotmail.com");

    if you also want to put the subject automatically, Do this:

    System.Diagnostics.Process.Start("mailto:xxxxxx@hotmail.com Subject=Rizwan Here");

    It'll automatically trigger your default email client with specified parameters ;-)

    Cheers!



  • Invoking Default email client without querying registry entry