Click here to Skip to main content
15,884,007 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

Get Default Mail Client Name

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
14 Jun 2011CPOL 7.1K  
I have been using the following code (suggested by someone on an MSDN forum) to determine if a default mail client has been configured:RegistryKey hkey = Registry.ClassesRoot.OpenSubKey( "mailto\\shell\\open\\command", false);hkey will be null if there is no such client.

I have been using the following code (suggested by someone on an MSDN forum) to determine if a default mail client has been configured:


C#
RegistryKey hkey = Registry.ClassesRoot.OpenSubKey(
                   "mailto\\shell\\open\\command", false);

hkey will be null if there is no such client.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Unknown
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --