General information
Category:
Coding, syntax & commands
Hi Valter.
>Does anyone know how to programmatically retrieve the SMTP address from a user's machine?
Look in the Windows Registry (you can use the Registry class in the FoxPro Foundation Classes, or FFC, that comes with VFP) for the following keys:
HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager
The "Default Mail Account" value in this node gives the ID for the default mail account. Then use that value in:
HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\the default account ID from above
This node has several values of interest, including "SMTP Email Address" and "SMTP Server". Fire up REGEDIT and look under these nodes to see what else you might want.
Hope this helps.
Doug
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only