Ask a Question

Reading Outlook Email Body Text

SOLVED
K_Sathish_Kumar
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

 

Regards,
Sathish Kumar K
1 ACCEPTED SOLUTION

Accepted Solutions
ebarbera
Staff

Re: Reading Outlook Email Body Text

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

View solution in original post

5 REPLIES 5
sonya_m
Community Manager

Re: Reading Outlook Email Body Text

Thank you for your question.

 

Could you take a look?

@Marsha_R @ApplePen @anupamchampati 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
kingdong
New Contributor

Re: Reading Outlook Email Body Text

Thanks for the answer

sonya.

Lee_M
Community Hero

Re: Reading Outlook Email Body Text

Please share the answer, I can't see it

IvoryHoward
Occasional Visitor

Re: Reading Outlook Email Body Text

Spoiler
 

Visit GetProspect online email verifier - https://getprospect.com/email-verifier to discover more about the email marketing technologies used to create this chrome extension. It is possible to import or create contacts from the email addresses of GetProspect users. Over a billion email addresses will be made available to consumers once the procedure is complete. Customers may automate their email marketing campaigns using GetProspect, a Chrome-based email finder.

 

ebarbera
Staff

Re: Reading Outlook Email Body Text

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

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: