none
[E2007][EWSMA][C#] Correct recipient address when using an alias RRS feed

  • Question

  • I have an inbox set up in exchange, hello@mycompany.com

    Additionally, there is an alias for this, news@mycompany.com, so all emails to the news address end up in the hello inbox.

    Ideally, I want to be able to tell which alias an email has been sent to, using EWS.

    When I send an email to news@mycompany.com, and examine the Internet headers of the message using Microsoft Outlook, the To: header reads To: Hello <news@mycompany.com> which is exactly what I want to see.

    However, using the EWS managed API, when I look at the ToRecipients property of the message, the reported email address is always that of the primary SMTP address. Also the InternetMessageHeaders property of the Webservices.Data.Item does not contain the To: property. I also can't seem to see the correct address using EWSEditor to examine all the properties of the message.

    The answer to this forum post seems to suggest that,  "...The Information about the actual email address a message is sent to is stored in the recipients collection which you can't access (outside of exportmessage) in EWS...".

    How can I find the actual recipient address (i.e. the alias to which it was sent)? Or is this not possible using the EWS Managed API?  If not, how should I go about finding it?


    • Edited by Raigou Thursday, June 2, 2011 1:21 PM incorrect title
    Thursday, June 2, 2011 1:19 PM