07-24-2006 03:31 PM
07-25-2006 03:36 AM
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...