Saving an Outlook Email as HTML

  • Thread starter Thread starter Robert Halford
  • Start date Start date
R

Robert Halford

I want to be able to save an Outlook email as HTML, but am unable to
identify how to match up the image references in the HTML to the image
attachments. For example here is a typical entry:

<IMG alt="" hspace=0
src="cid:577201c6f846$637acff0$010d040a@wcu76548" align=baseline border=0>

If I look at the email attachments collection, I can physically see there is
an image attachment that fits with this, but I can't work out how in code I
can match up the cid reference with the correct attachment.
 
You need to access the RR_ATTACH_CONTENT_ID property (which will have the
valuee of "577201c6f846$637acff0$010d040a@wcu76548" for your HTML below) on
the attachment using Extended MAPI (C++/Delphi), CDO 1.21 or Redemption.
Note that Outlook 2007 supports accessing arbitrary MAPI properties using
Attachment.PropertyAccessor object.

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