Read Body of Outlook mails

@venkatmalla6 Thank you so much for fast reply and helping me to get out of it .I will check where it is going wrong.

try setting the string of the body to lowercase then check for if contains.

if your string is string_EmailBody you would assign a variable like this

@Bindhu as you can see in output it shows 1 right which means the respective mail contains either success friend or success unfriend.
-to find which one is success and which one is failed in else condition i used encounter integer variable there i used if condition like encounter=2 since you are looking only two mails only here the condition goes to else condition there i used if condition as **item.body.contains(“success friend”)**the purpose of giving this is if the respective second mail contains success friend it goes to then section which itself shows message box it is failed due to success unfriend.
-this is how the scenario works.

@venkatmalla6 Thank You

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.