Where to find account settings?

K

Kai Huener

Hello everybody,

I want to write an Add-In for Outlook which decides automatically between
two smtp-Servers depending on the current IP-Adress.

Where can I set the string for the smtp-Server. I search something like

Outlook.Accounts['myAccount'].Settings.smtpServer

but I could not find anything and Macro-Recording is not possible in Outlook
2003.

Can anybody tell me, where to find the necessary Property?

Best Regards,
Kai Hüner
 
K

Ken Slovak - [MVP - Outlook]

It's in the registry and Outlook reads that when it starts up.
 
K

Kai Huener

Ok - that's more than I knew - but can you tell me, how to get these values
and how to edit them by using an Outlook Add-In?

Best Regards,
Kai


Ken Slovak - said:
It's in the registry and Outlook reads that when it starts up.




Kai Huener said:
Hello everybody,

I want to write an Add-In for Outlook which decides automatically between
two smtp-Servers depending on the current IP-Adress.

Where can I set the string for the smtp-Server. I search something like

Outlook.Accounts['myAccount'].Settings.smtpServer

but I could not find anything and Macro-Recording is not possible in Outlook
2003.

Can anybody tell me, where to find the necessary Property?

Best Regards,
Kai Hüner
 
K

Kai Huener

can you tell me, in which key I have to search for the smtp-Server?

Ken Slovak - said:
It's in the registry and Outlook reads that when it starts up.




Kai Huener said:
Hello everybody,

I want to write an Add-In for Outlook which decides automatically between
two smtp-Servers depending on the current IP-Adress.

Where can I set the string for the smtp-Server. I search something like

Outlook.Accounts['myAccount'].Settings.smtpServer

but I could not find anything and Macro-Recording is not possible in Outlook
2003.

Can anybody tell me, where to find the necessary Property?

Best Regards,
Kai Hüner
 
K

Ken Slovak - [MVP - Outlook]

Try HKCU\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts. The
different accounts are listed under that key.
 
K

Kai Huener

I'm sorry, but when I look in regedit, I find this key, but it is empty -
there are no accounts. Is there another possibility?
 
K

Ken Slovak - [MVP - Outlook]

Try HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging
Subsystem\Profiles\.
 
K

Kai Huener

Hi Ken,

Thank you for your Hint, with your help I could write a method to change the
SMTP-Settings in the Registry. But now I have another problem: When I change
the value of the relevant Key, Outlook only read this when I restart the
Applikation. Is there a possibility to check the Registry-Values after a
change without restarting Outlook?

Best Regards,
Kai Huener
 
K

Ken Slovak - [MVP - Outlook]

Outlook only reads those values when it starts up. No way to change that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top