Unique Identify Email in EWS Managed API RRS feed

  • Question

  • Hi,

    I'm using EWS API to send Email in my project. I have a scenario in which I need to read the bounced e-mails; for which I need some unique Id for each email I'm sending. 

    Which is the best approach to that.

    1. Can we use ExtendedPropertyDefinition and add a property with Guid and store Guid in my db.

    2. There is a property called Id for the EmailMessage class. can we use that ?

    Or, is there any other idea? please help me out.

    Friday, October 4, 2013 8:08 AM

All replies

  • While you could use a Custom Mapi property I would suggest you use your own X-Header as that will survive on a MIME message eg

                EmailMessage eMessage = new EmailMessage(service);
                eMessage.Subject = "test";
                ExtendedPropertyDefinition xHeader = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.InternetHeaders,"X-CustomHeaderName",MapiPropertyType.String);

    2. I think your referring to the EWSid which isn't transmitted. There's is the InternetMessageId http://en.wikipedia.org/wiki/Message-ID by this is generally set by the MTA.


    Monday, October 7, 2013 2:00 AM