How to read today's outlook mails bases of subject

My requirement is read only today’s outlook mail on the bases of subject

Please help me

Hey @Vishnu_Reddy1,

Refer this link to filter the todays email.


Hi @Vishnu_Reddy1

Have a look on the document

Try with this expression

"[Received] = '"+DateTime.Now.ToString("dd.MM.yyyy")+"'"



My requirement is today’s mail base of subject.

Can you share us with subject template here @Vishnu_Reddy1

"[Received] >= '" + DateTime.Today.ToString("dd.MM.yyyy") + " 00:00AM'"


Using the above method you will get a list of email that you have received today after that you can use linq as below to get the email that contains subject as per your requirement.
ListMailMessage.AsEnumerable().Where(Function(x) x.Subject.Contains(“RequiredString”)).ToList


Hi @Vishnu_Reddy1,
please read all current datetime mails and run loop on mail messages.
and in for loop place if condition where put a subject related condition.
if the condition is true then put all the action in then block.
otherwise go for next

Tq Gokul
My next requirement is read tha mail body
In output
How to extract that output data write into one excel spicipic coloum… please help me

Great @Vishnu_Reddy1

Could you create an new topic for this requirement?


1 Like

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