Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieve SMTP address
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00694893
Message ID:
00695047
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform