Ask a Question

Reading Outlook Email Body Text

SOLVED
Mr_Bro
Frequent 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.

 

Thanks

 

4 REPLIES 4
sonya_m
SmartBear Alumni (Retired)

Thank you for your question.

 

Could you take a look?

@Marsha_R @ApplePen @anupamchampati 


Sonya Mihaljova
Community and Education Specialist

Thanks for the answer

sonya.

Please share the answer, I can't see it

Hi @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-va...

Let me know if you have further questions.

Emma

cancel
Showing results for 
Search instead for 
Did you mean: