Click here to Skip to main content
15,884,075 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello World,
in our company we use an application that handles emails.

Now if people click mailto links on a webpage the default email client opens (Outlook, Firebirtd, etc.).

Is there a way to change the default email client using C# code (during install or startup of the program) so that our email program opens?

I already archived to handle related file associations like eml to use our program, but the mailto stuff is still bugging me ;)

Any help is kindly appreciated,
best regards
Andy
Posted

1 solution

There is a registry key at :
HKEY_CLASSES_ROOT\mailto\shell\open\command


Which you can change to your own program.
 
Share this answer
 
Comments
hoernchenmeister 20-Oct-11 3:06am    
Thanks a lot Mehdi for the quick answer, exactly what I was looking for ;)
cheers
Andy
Mehdi Gholam 20-Oct-11 3:18am    
That's what we are here for :)
hoernchenmeister 20-Oct-11 8:09am    
I really appreciate that ;)

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