Tom’s Tutorials For Excel: Reading the Registry for Your Email (non-Web Mail) Client

Tom’s Tutorials For Excel: Reading the Registry for Your Email (non-Web Mail) Client

Here’s a macro that reads your Registry and tells you the name of your email client. This does not include web mail such as accounts in Gmail and Yahoo.

My email client is Microsoft Outlook.
When I run this macro, this is what I see.



Here’s the macro I used to produce the above Message Box.

Sub EmailClient()
Dim eClient As Object
Set eClient = CreateObject("WScript.Shell")
MsgBox eClient.RegRead("HKLM\SOFTWARE\CLIENTS\MAIL\")
Set eClient = Nothing
End Sub
Share Button
Posted in Tom's Tutorials for Excel
Tags: , , , , , , , , , , , ,
2 comments on “Tom’s Tutorials For Excel: Reading the Registry for Your Email (non-Web Mail) Client
  1. Jon Peltier says:

    Neat trick, unless you’re using Gmail, which leaves the registry alone.

    http://peltiertech.com/images/2012-02/email_client.png

Leave a Reply to Tom Urtis Cancel reply

Your email address will not be published.

*