Capturing text from the body of email message in Outlook
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2010
06:00 AM
03-17-2010
06:00 AM
Capturing text from the body of email message in Outlook
I have a web application that has functionality to reset a users password if forgotten and send a new password to the users email. Using CDO, TC can send messages. With CDO or any other available Microsoft API's, is there a way to extract text from the body of the Outlook message, search the extracted text for a particular pattern using regular expressions and store results in variable? The idea is to capture the new password and pass it back to the test and log back into the web application with the new password.
3 REPLIES 3
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2010
08:33 PM
03-17-2010
08:33 PM
Hi David,
The message from Aaron (http://www.automatedqa.com/newsgroups/d.cgi?cmd=article&group=automatedqa.public.testcomplete&item=4...😃 from the http://www.automatedqa.com/newsgroups/d.cgi?cmd=xover&group=automatedqa.public.testcomplete&related=...= thread may provide you with some ideas...
The message from Aaron (http://www.automatedqa.com/newsgroups/d.cgi?cmd=article&group=automatedqa.public.testcomplete&item=4...😃 from the http://www.automatedqa.com/newsgroups/d.cgi?cmd=xover&group=automatedqa.public.testcomplete&related=...= thread may provide you with some ideas...
Regards,
/Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
/Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2010
05:25 AM
03-18-2010
05:25 AM
Thanks Alex! That was a great help. Now I have to figure out how to open the message and extract the text from the body of the message. If I'm able to figure out, I will post the solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2010
07:56 PM
03-18-2010
07:56 PM
Hi David,
Maybe I missed something in your question, but for my Outlook 2007 the following lines (as per referenced Aaron's message)
Set toolEmail = inbox.Items(i)
Call Log.Message(toolEmail.Subject, toolEmail.Body)
post e-mail subject and body (in the plain text format) to the log. There is also .HTMLBody property if you are interested in the html format.
Maybe I missed something in your question, but for my Outlook 2007 the following lines (as per referenced Aaron's message)
Set toolEmail = inbox.Items(i)
Call Log.Message(toolEmail.Subject, toolEmail.Body)
post e-mail subject and body (in the plain text format) to the log. There is also .HTMLBody property if you are interested in the html format.
Regards,
/Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
/Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
