best way to retrieve headers and original message source

L

Luther Miller

I'm working on a SPAM reporting macro, and I would like to retrieve
the original SMTP message headers AND source in plan text format
(e.g., if the original message was HTML, I would get all the tags
etc., ... I want it however it was sent w/o modifications). I am using
O2003. I found some CDO code to get the headers... how should I get
the body? Is there a simple VBA script to get both? TIA..
 
D

Dmitry Streblechenko \(MVP\)

Outlook does not store the original RFC 822 message (Exchange 2000/2003 do
in some cases). The best you can do is reconstruct the RFC822 envelope from
various MAPI properties or use a third-party library (e.g. Redemption - see
SafeMailItem.SaveAs)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
L

Luther Miller

I know how to get the headers - what would be the best way to retrieve
the original "body"? (e.g., html source if it was an html message,
etc.)
 

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