Mr_Bro
4 years agoFrequent Contributor
Reading Outlook Email Body Text
Hi Team,
Can anyone of you please guide me how to retrieve the outlook's email body text without making use of COM (sys.OleObjetct()) object.
can you please share the snippet using CDO object...
- 4 years agoHi IvoryHoward -
Are you looking for a solution to pull the text out of an email?
If so - I would recommend using the object spy on the body of the email to see the object - one of the properties (probably the contentText) should hold this value. A set variable value could then be used to store the contents into a variable and use.
Relevant documentation:
https://support.smartbear.com/testcomplete/docs/testing-with/exploring-apps/object-spy/index.html
https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/set-variable-value.html
Let me know if you have further questions.
Emma