Invoking Default email client without querying registry entry  
Author Message
krisvenki





PostPosted: .NET Framework Networking and Communication, Invoking Default email client without querying registry entry Top

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 )


.NET Development9  
 
 
RizwanSharp





PostPosted: .NET Framework Networking and Communication, Invoking Default email client without querying registry entry Top

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

hotmail.com");

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

hotmail.com Subject=Rizwan Here");

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

Cheers!