LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SMTP ?

Hello,
 
The end user of my program should have the possibilities to send me an email. As I can not know the SMTP server the end user is using, how can I retrieve it ?
 
Bertrand
0 Kudos
Message 1 of 2
(2,969 Views)

Do you need to retrieve dynamically or can you store a "known" server name in a configuration file or in the registry and use the name stored? In the first case and supposing a mail system is present in the target machine you will need to check in the registry which is the key where those values are stored in, which depends on the mail program you are using. Supposing on your machine is installed Outlook the accounts values should be stored in HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\00000001 (the latter varying from 1 to the number of accounts configured in the program); other mail programs store the accounts informations in other registry keys.

But I really don't know where to find this value if a mail program is not installed and configured in the pc...



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,955 Views)