Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find default Email Client and Email Address? 1

Status
Not open for further replies.

tamayok

Programmer
Sep 4, 2001
99
0
0
PR
Hello!

I want to be able to find out by reading the registry, what is the default email client and email address (if such email client has been configured for it).

If there is no single value/key at the registry, can someone post the commonly used email client's reg. info pointers (OutLook and Express, Eudora, Thunderbird...)?

Many thanks for sharing your expert advice!

Kenneth
 
Additionally, is there a SYS() function or other for invoking the Control Panel/Internet Configuration (and possibly directly to the Programs tab)??
 
Not sure about the registry entries for mail, but this opens the inet config control:
Code:
DECLARE INTEGER ShellExecute IN shell32.DLL ;
   INTEGER hndWin, ;
   STRING cAction, ;
   STRING cFileName, ;
   STRING cParams, ;
   STRING cDir, ;
   INTEGER nShowWin

DECLARE INTEGER GetWindowsDirectory IN kernel32;
   STRING @lpBuffer, INTEGER nSize

lpBuffer = SPACE (250)  
nSizeRet = GetWindowsDirectory (@lpBuffer, Len(lpBuffer))  

ShellExecute(0, "open", "control", 'inetcpl.cpl', lpBuffer , 1)

-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Dave (a.k.a DSummZZZ),

That's perfect!!!! inetcpl.cpl is what I was looking for. At least I can point in that direction...

Well deserved star!

Kenneth
 
For the benefit of others that may be following this thread...

Perhaps the answer to my initial query (to find the default email client) can be obtained at the Windows Registry key:

> HKey_Classes_Root\mailto\shell\open\command <

Reg_SZ Data value would be then AT() searched for commonly used email clients.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top