VSTO Get Outlook Email Header

L

Lior Ronen

Hi,
I have created an Outlook addin using VS 2005 and VSTO.
I have searched a lot but cannot find how to get the HEADER for an email.
The HEADER should contain the ISP IP, other IPs and exactly the route this
email
went through until it got to my inbox.
Thanks,
Lior
 
K

Ken Slovak - [MVP - Outlook]

Not available in the Outlook object model (except for Outlook 2007).

You need to get the PR_TRANSPORT_MESSAGE_HEADERS property from some API
that supports calling for unexposed properties, such as CDO 1.21 or Extended
MAPI or Redemption (www.dimastr.com/redemption). CDO and Extended MAPI
aren't supported however for use across the Interop.

See http://www.slovaktech.com/code_samples.htm#InternetHeaders for a CDO
1.21 example of getting the mail headers and using the Message.Fields
collection.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top