Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Tagged as

Go to top

Get Default Mail Client Name

, 14 Jun 2011
Rate this:
Please Sign up or sign in to vote.
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.

License

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

Share

About the Author

MWBate
Architect
Unknown
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web01 | 2.8.140921.1 | Last Updated 14 Jun 2011
Article Copyright 2011 by MWBate
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid