Outlook 2007 Breaks CDO-Generated MHTML Graphics in Mail Body

J

jhcoxx

Working in Office 2007 / Vista, I've developed a method for
converting .html files with embedded graphics into the body of email
notes using cdosys.dll (version 6.6.6000.16387, dated 11/02/04 4:46
AM). I've even figured out a method for not having the emails show up
in the junk mail folder in Outlook.

When I open the emails in Outlook 2003, the embedded .gif file is
displayed perfectly, but not in Outlook 2007. There, if the sender
address or sender's domain name is not in the Safe Senders list in the
Junk Mail Filter settings, the email is displayed with a "Click here
to download pictures. To help protect your privacy, Outlook prevented
automatic downloading of some pictures in this message" line between
the Ribbon and the top of the email. Clicking on the bar doesn't
bring the image in.

If the sender's domain name is in the Safe Senders list, the message
described above does not show up, but the image doesn't either - the
standard outline rectangle the size of the image with a red X in a
small box at the upper left corner of the image area is all that shows
up.

If the Trust Center's Automatic Downloads settings are changed to
allow unconditional automatic downloads of pictures in emails, the
place where the image is supposed to be shows up as the outline
rectangle with the red X in a small box - but not the image.

Anyone know why this is happening and how to fix it?

Thanks!

James

As I said, the in Outlook 2003, the image shows up perfectly
 
J

jhcoxx

Well, have done some more work on this - it appears to be due to the
change from the IE to Word email rendering engine. What's odd is that
if I open the .html file with Word, it renders OK.

So there must be something about the .CreateMHTML function of cdosys
that is messing up the mhtml file it generates or something in the
Excel .PublishObject that I'm using to create the original html file
that creates something that can't be handled...

(Sigh) Anyone have any insights?

Thanks - James
 

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