Link to home
Start Free TrialLog in
Avatar of TrevorParnhamntl
TrevorParnhamntl

asked on

Ho do I check outlook email account details such as pop3 or smtp server using VBScript or VB

As part of a Customer support programme, I want to be able to programmatically check values of Outlook or outlook express email account objects such as incoming and outgoing servers, email name syntax, port numbers etc.
How can I access these objects with either VBScript (preferably) or VB6?
I can't seem to find these objects anywhere in the outlook object model.
Avatar of chipconsult
chipconsult
Flag of Denmark image

When it comes to Outlook Express the values are stored in the Registry in HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\

Outlook seem to save the values in the PST-file.

Claus Henriksen
Avatar of TrevorParnhamntl
TrevorParnhamntl

ASKER

Thanks Claus.

How do I access the information in the PST file?

Trevor
That's a very good question. I haven't got the slightest idea. According to http://www.mailnavigator.com/reading_ms_outlook_pst_files.html it can only be done in Outlook. I have an Outlook Programming book with a procedure to select the account but with no way to extract the information.

Sorry, but ...

Claus Henriksen
ASKER CERTIFIED SOLUTION
Avatar of chipconsult
chipconsult
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Claus,
That's progress. At least I now know the info is accessible. All I have to do now is convert this to vbscript. I'll work on that and let you know.
If nobody comes up with anything better, it looks like the points will be yours.
Of course, if you come up with the script to run as .htm or .hta, that will stop someone else stealing your thunder.

Thanks for your help thus far.

Regards,

Trevor
Hello Claus,
I have managed to write a VB Script to read from the registry based on the information you provided and have therefore accepted your answer and awarded the points.
However, I still have a problem and that is that Outlook data is stored in binary format in the registry and I am now looking to find out how to do this in VB Script. I may be posting another question on that sunject.

Many thanks for your help.

Regards,

Trevor