Luciano Schafer
Luciano Schafer

Reputation: 45

How to get email type using EWS?

i'm trying to find the diference between a normal mail and a notification mail (read:, delivery notification failure:, etc) it this possible?

My development environment is asp.net c# Exchange-server 2010 Thank you.

ExchangeService ews = new ExchangeService(ExchangeVersion.Exchange2010);

Upvotes: 0

Views: 1686

Answers (1)

Glen Scales
Glen Scales

Reputation: 22032

Generally the best way is to check the Message Class via the ItemClass property https://msdn.microsoft.com/en-us/library/office/exchangewebservices.itemtype.itemclass(v=exchg.150).aspx eg on a delivery report it should be Report.IPM.Note.DR see https://msdn.microsoft.com/en-us/library/office/cc842141(v=office.15).aspx

Cheers Glen

Upvotes: 1

Related Questions