How to read new mails from O365 box using c#

Copper Contributor

Hi,

 

We are trying to read mails from office 365 mail box using c# in one of our application. Meanwhile enclosed sample code for your kind perusal.  This can give all mails from Inbox. We need below requirement.

1) We need to read only new mails content  in Inbox.

2) After reading we need to delete those mails.

 

How to achieve the above two points using ExchangeService.FindItems?

 

Please reply at earliest.

 

Thanks

Bala

 

0 Replies