Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement