Click here to Skip to main content
15,667,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can one check if there is a default mail client (i.e. Outlook) or there isn't such.
Usually if you type "mailto://, it will open this default client, or if there isn't such, a message will appear. What I am trying to find out is how can this information be found programatically.

1 solution

See the MSDN article How to Register an Internet Browser or Email Client With the Windows Start Menu[^].

It describes how to set the default programs using the registry. Read the mentioned keys to determine the default program.
Share this answer
Michael Haephrati 1-Feb-15 14:53pm    
Your solution is good but I couldn't find that it 100% works. If you use outlook and uncheck the "Set as default mail client", and then check the registry, it leads to false positive results. Not really sure..
Jochen Arndt 2-Feb-15 3:26am    
I don't have Outlook so I can't check this. It seems that Outlook does not delete the keys when disabling as default client. Did you get a message or is Outlook opened in this case? If you get a message, there must be another solution.

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900