65.9K
CodeProject is changing. Read more.
Home

Get Default Mail Client Name

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Jun 14, 2011

CPOL
viewsIcon

7252

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:

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

hkey will be null if there is no such client.