Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine the SMTP server programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00844632
Message ID:
00844740
Views:
13
>>Is there a way to determine the SMTP server programmatically?
>>
>>TIA,
>>
>>Alex
>
>The SMTP server has to be setup manually in your program. There is no network autodiscovery of the SMTP Server as there is with DNS and Gateways.
>
>Most network admins shouldn't have a problem setting this up for you in your applications.

Thanks to a tip by Anatoliy Mogylevets I found out the following, which I pass in case it's useful:

1) HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Default Mail Account contains the internal name of the default mail account.

2) HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\xxxxx\SMTP Server contains the SMTP Server name, where xxxxx is the internal name found in step 1

Alex
Previous
Reply
Map
View

Click here to load this message in the networking platform