Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

parsing InternetMessageHeaders via EWS

$
0
0

I have some generic mailboxes in my Exchange 2010 environment that have a number of smtp addresses assigned to them.  I would like to write a script to parse the emails in these generic mailboxes and grab the smtp address that the email was sent to. I can do this manually by opening the email in outlook and looking at the Internet Message Header, the 'To' field shows the specific smtp address the email was addressed to.  When I connect to the mailboxes via EWS and parse the InternetMessageHeader of the email, I can see all the values except for the 'from' and 'to' fields.  

The ToRecipients property of the email itself won't work for me as it simply shows the primary smtp address of the mailbox.  


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>