Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieve SMTP address
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00694893
Message ID:
00695047
Views:
13
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
Map
View

Click here to load this message in the networking platform