[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 820
  • Last Modified:

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.
0
TrevorParnhamntl
Asked:
TrevorParnhamntl
  • 3
  • 3
1 Solution
 
chipconsultCommented:
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
0
 
TrevorParnhamntlAuthor Commented:
Thanks Claus.

How do I access the information in the PST file?

Trevor
0
 
chipconsultCommented:
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
0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 
chipconsultCommented:
0
 
TrevorParnhamntlAuthor Commented:
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
0
 
TrevorParnhamntlAuthor Commented:
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
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now