Click here to Skip to main content
12,630,137 members (26,279 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

3.7K views
Posted

Get Default Mail Client Name

, 14 Jun 2011 CPOL
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

You may also be interested in...

Comments and Discussions

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