Retrieve specific data from mail body of a specific Sender

email
activities

#1

Hi,
I want to retrieve specific data from mail body sent by the specific person in inbox.
But i am getting this error…Any suggestions?


#2

In this case the error seems to be in the condition that should be type boolean


#3

so what should i do to get the data?


#4

In your first if condition you should have something like: item.From.contains(“xxxxx”)


#5

Hello there,
Try this,
item.From.Address.Contains("abc@xx.com").ToString