Home

How to read new mails from O365 box using c#

%3CLINGO-SUB%20id%3D%22lingo-sub-1064375%22%20slang%3D%22en-US%22%3EHow%20to%20read%20new%20mails%20from%20O365%20box%20using%20c%23%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1064375%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20trying%20to%20read%20mails%20from%20office%20365%20mail%20box%20using%20c%23%20in%20one%20of%20our%20application.%20Meanwhile%20enclosed%20sample%20code%20for%20your%20kind%20perusal.%26nbsp%3B%20%3CSTRONG%3EThis%20can%20give%20all%20mails%20from%20Inbox%3C%2FSTRONG%3E.%20We%20need%20below%20requirement.%3C%2FP%3E%3CP%3E1)%20We%20need%20to%20%3CU%3E%3CSTRONG%3Eread%20only%20new%20mails%20content%26nbsp%3B%20in%20Inbox.%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%3CP%3E2)%20After%20reading%20we%20need%20to%20delete%20those%20mails.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20to%20achieve%20the%20above%20two%20points%20using%20ExchangeService.FindItems%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20reply%20at%20earliest.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EBala%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1064375%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
chengamkathiravan
Occasional Visitor

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