Saving an Outlook Email as HTML

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.
 
D

Dmitry Streblechenko

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
 

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