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.
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.
ASKER
Thanks Claus.
How do I access the information in the PST file?
Trevor
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
Sorry, but ...
Claus Henriksen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
ASKER
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
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
Outlook seem to save the values in the PST-file.
Claus Henriksen