| || |
Best way to access emails held on exchange server
I have to come up with the best way to access and test an email which is not sent out but held on an exchange server instead.
My initial idea worked quite well; write the email to a html file, then open the file in IE. Then use QTP to check the email content.
However, this can no longer be used as;
a) The name of the file contained the username which can now include invalid file characters (e.g. ?)
b) The developers want to remove the code which allows teh system to write to the files rather than the exchange server.
The manual process is to use the web version of outlook to access the email but my initial investigations appear to show that QTP doesn't easily interact with this page. I can't use outlook as the PC which will eventually run all the QTP scripts does not ahve (and will not have) outlook installed.
Re: Best way to access emails held on exchange ser
You need to look at CDO and see if that can help you out here. For use we try to keep the subject line unique for any kind of emails, this can be done by using a time stamp in the subject line. We usually use outlook and i am not sure if CDO would provide a way to filter things out as such. One more thing you can try is to build a ADODB connection to the exchange server. NOt sure if that is possible or not but i feel there might be chance that something like this can be done