默认邮件客户端 - 如何以编程方式获取它

问题描述:

如何检查是否有默认邮件客户端(即Outlook)或没有默认邮件客户端。

通常如果您输入mailto://someone@domain.com,它将会打开这个默认客户端,或者如果没有这样,会出现一条消息。我想知道的是如何以编程方式找到这些信息。

How can one check if there is a default mail client (i.e. Outlook) or there isn't such.
Usually if you type "mailto://someone@domain.com, 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.

请参阅MSDN文章如何使用Windows启动注册Internet浏览器或电子邮件客户端菜单 [ ^ ]。



它描述了如何使用注册表设置默认程序。阅读提到的键以确定默认程序。
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.