HTML w/Images Email

B

bernie

I created an HTML email that included an image. When
I "View Source" of the email I find unfamiliar HTML
source code. The image tag is formatted as:

<img width=108 height=140
src="cid:[email protected]">

If I right-click on the image and choose to save it, I
can only save it as a BMP image, not in the original GIF
format. Can anyone explain the code and how I might
recover the original image with a right-click?

Thanks for your assistance.
 
R

Roady [MVP]

The code is normal as the picture is embedded. You can only save embedded
images as bmp-files.

To work around this use underlying code to create a macro that will save the
images in their original format;

Sub SaveAttachment()
Dim objCurrentItem As Outlook.MailItem
Dim colAttachments As Outlook.Attachments
Dim objAttachment As Outlook.Attachment

Set objCurrentItem = Application.ActiveInspector.CurrentItem
Set colAttachments = objCurrentItem.Attachments

For Each objAttachment In colAttachments
objAttachment.SaveAsFile ("C:\" & objAttachment.FileName)
Next

Set objAttachment = Nothing
Set colAttachments = Nothing
objCurrentItem.Close (olDiscard)
Set objCurrentItem = Nothing

End Sub

--
Roady [MVP]
www.sparnaaij.net
Microsoft Office and Microsoft Office related News
Also Outlook FAQ, How To's, Downloads and more...

Tip of the month:
-Create your own fully customized Toolbar

Subscribe to the newsletter to receive news and tips & tricks in your
mailbox!
www.sparnaaij.net

(I changed my reply address; remove all CAPS and _underscores_ from the
address when mailing)
 

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