A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Saving an Outlook Email as HTML



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 25th 06, 06:56 PM posted to microsoft.public.outlook.program_vba
Robert Halford
external usenet poster
 
Posts: 5
Default Saving an Outlook Email as HTML

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.


Ads
  #2  
Old October 25th 06, 07:10 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Saving an Outlook Email as HTML

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

"Robert Halford" wrote in message
...
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.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving emails as an HTML file Garret Swayne Outlook - General Queries 3 August 14th 06 03:39 PM
Outlook converts my HTML email to text Dena Jo Outlook - General Queries 6 May 28th 06 10:39 PM
When saving a new Outlook Contact email address disappear Bauhinia Outlook - Using Contacts 1 March 24th 06 11:15 PM
sending html in body of outlook xp email Help a Novice Please Outlook - General Queries 3 February 22nd 06 07:50 AM
saving email addresses from incoming Outlook mail Innovation Chick Outlook - General Queries 2 February 1st 06 05:06 PM


All times are GMT +1. The time now is 08:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.