Question

[Outlook] Stopping Outlook from Embedding Images in HTML Documents

Asked by: CE101

Applications:  Outlook 2002 (10.2627.2625), MS Office XP
O/S:           Windows 2000 Professional, SPK 4  

I have an email flyer that I would like to send out using Outlook, however Outlook seems to add some baggage making it heavier (in KB) than desired and I am wondering how this can be avoided.

The flyer was designed to be light weight. Although it's rich in graphics, the actual HTML file is only 6KB because all the images are external references. However when I bring it into Outlook it becomes 64KB.

So I am wondering if I am bringing it into Outlook in the wrong way???
Here are the steps I employ to get the flyer into Outlook...
(1) IE:                   Open the HTML doc  
(2) IE:                   Select all  .....   CopyToPasteboard              
(3) Outlook:          File/New/MailMessage     ....  Format/HTML   (this creates a new draft in html format)
(4) Outlook:          Paste from Pasteboard

When I open the Outlook HTML document with ViewSource I can see that a lot of extra code has been added.
For example, the following new code appears near the top of the document
@font-face
      {font-family:Wingdings;
      panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
      {font-family:Wingdings;
      panose-1:5 0 0 0 0 0 0 0 0 0;}
 
Most troubling however is that all the images have been embedded into the doc.

Whereas the original code referencing an image used to look like this....
<img border=0 width=600 height=180
src="http://0.0.0.0/..../Email-Flyer/header.jpg">
 
Now the code looks like this...
<img border=0 width=600 height=180 id="Picture_x0020_1"
  src="cid:image001.jpg@01CA5217.B7934D50"
  alt="http://0.0.0.0/..../Email-Flyer/header.jpg">

I googled around and found that "cid" stands for "Content ID" and it means the image is embedded.

QUESTION...
(1) Am I bringing it into Outlook in the wrong way?
(2) How do I stop these CIDs from taking hold?

Any suggestions would be greatly appreciated.  

Gary

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-22 at 20:55:59ID24836963
Topics

Outlook Groupware Software

,

Web Images

,

Hypertext Markup Language (HTML)

Participating Experts
2
Points
500
Comments
14

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. embed image in email with cid url
    I am using CDO to send emails and I try to embed images to message. I work with 2 servers windows 2000. I develop and I make all my tests on the first server and the second server is the running server of my company. I tried to use the CreateMHTMLBody - something like that: ...
  2. Embed an image in an HTML file
    Hello there I would like to embed an image in an HTML file. Not attached as a link, but actually bundled as part of the same file. I think mail messages use this. You receive HTML mail with pictures, but no attached files. Presumably there is some sort of text format that ...
  3. font-family works in IE but not Mozilla
    Hello, I have the following code on a page: <p style="font-family:wingdings;font-size:32px;font-weight:bold">J</p> In IE6 this apears the way I would like it to as a "happy face" but in Mozilla or FireFox I just see a capital 'J'. Any ideas ...
  4. Embed fonts
    How to use embed fonts in Flash MX?
  5. Embed a font in email signature
    Hi, I know that I can can embed an image into my email signature - unfortunatly these emails get blocked quite often for the image. I can create a TTF font for my company logo - now is it possible to embed that font within my email (Outlook and exchange) so that the correct ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: BlueDevilFanPosted on 2009-10-23 at 14:03:30ID: 25648573

Hi, CE101.

The solution is to not use copy and paste like this.  Instead copy the HTML file to Outlook's Stationery folder.  Then create a new message using this stationery.

 

by: CE101Posted on 2009-10-25 at 01:32:20ID: 25655980

Hi BlueDevilFan:

Thank you for your kind assistance.

I've done as you've suggested...
(1) Copied the HTML file to C:\Documents and Settings\...\Application Data\Microsoft\Stationery
(2) Created stationary by going to Outlook's   \Tools-menu\Options\MailFormat-tab   and doing the following...
(a) In the Compose-in-this-message format list, clicked HTML.
(b) Clicked StationeryPicker, and then clicked the document copied in Step 1.
(3) Composed new message (ie File\NewMessage)   --- the result was the HTML file as above
(4) Dragged the message from the Draft folder to the Inbox

Result:   The Inbox showed it to be 64KB, not 6KB as in the native HTML file.

Incidentally when I email the Stationary-created-version to myself it comes back as 67KB, the same size as the version created by copy-paste.    

Doing ViewSource I see that the images have not been embedded.
The code:                           src="http://0.0.0.0/..../Email-Flyer/header.jpg">
Has not been changed to    src="cid:image
The way it was changed in the copy-paste version.

So now I am baffled.
If the images are not embedded how can the document be 64KB?

Any suggestions????

Gary

 

by: CE101Posted on 2009-10-25 at 02:11:33ID: 25656060

Hi BlueDevilFan:

I made a mistake in my last message.
The Inbox showed it to be 63KB (not 64KB as previously reported).

I was wondering why 63.
I just realized that it's the sum of the following..
The original HTML file size:    6KB
The total size of the 8 jpg and gif files referenced in the HTML:   57KB

So clearly the images are being embedded despite the code that says ....    src="http://

So the question still remains.
How do I prevent the images from being embedded.

Any suggestions????

Gary

 

by: BlueDevilFanPosted on 2009-10-25 at 17:46:23ID: 25659178

Hi, Gary.

Do you have Outlook set to use Word as the editor?

 

by: CE101Posted on 2009-10-25 at 22:23:02ID: 25659793

Hi BlueDevilFan:  

> Do you have Outlook set to
> use Word as the editor?

Originally it was not set as the editor.
However now that you ask, I have set it as the editor.
But I still get the same results -- 57KB.

Gary

 

by: BlueDevilFanPosted on 2009-10-26 at 17:47:34ID: 25668416

Gary,

Having Word as the editor can cause a variety of problems.  I was going to recommend turning it off if you had it set as the editor.

Instead of creating a message as you described above, try doing it this way

1.  Click Actions > New Mail Message Using > More Stationery
2.  Select your HTML file

 

by: CE101Posted on 2009-10-27 at 07:26:16ID: 25672757

> 1.  Click Actions > New Mail Message Using > More Stationery

In my version of Outlook (vs 2002 rel 10.2627.2625) there's no "New/Mail Message/Using" item on the File menu.
The File menu only offers "New/MailMessage"

 

by: BlueDevilFanPosted on 2009-10-27 at 07:48:17ID: 25672990

Ummm, I didn't say the File menu.  The Action menu.

 

by: CE101Posted on 2009-10-27 at 08:29:12ID: 25673489

From BlueDevilFan:

> Ummm, I didn't say the File menu.  The Action menu.

Sorry, I didnt realize that "New/MailMessage" is on the Action menu. I assumed you meant the File menu.

Anyways I tried "New/MailMessage" and chose my HTML file from the menu.
Then I closed it and then dragged it from the Drafts folder to the Inbox where the size is shown as 63KB (not the desired 6KB).

I just attached the HTML file in question, so that you can see for yourself what is happening...  
    EmailFlyer_HTML.txt
I changed the filetype from htm to txt, otherwise it cannot be uploaded.

Thank you for your kind help.

Gary

 

by: BlueDevilFanPosted on 2009-11-01 at 18:09:53ID: 25716678

Gary,

Sorry to be slow to reply.  I created a message in Outlook 2003, I don't have 2002 anymore, using your HTML.  The HTML file on disk is 5.5 KB.  The resulting message is 70 KB.  If I save the message to disk the resulting file is 6.4 KB.  Part of the difference in size can be accounted for by looking at the structure of a mail item object.  There are numerous properties (e.g. date created, date last modified, message ID, etc.) and Outlook actually stores three versions (HTML, RTF, and plain-text) of the message body in the mail object.  A message will always be bigger than the HTML file it was created from, but I didn't expect it'd be ten times larger.  I guess I'd never paid much attention to that before.  I decided to compare your message to a message created from a very minimal HTML file.  The source HTML file was a mere 367 bytes.  The message created from it was 7 KB.  I then created a couple of HTML messages and the smallest I could get was about 2 KB.  I'd have to do more testing to see if I can figure out a growth pattern.  From the looks of it the growth in message size of your message is in line with what I see with other messages.  

FWIW = Your message does not render well when viewed in Outlook 2007.

 

by: CE101Posted on 2009-11-06 at 08:46:24ID: 25760737

To BlueDevilFan:

Thanks for your thoughtful reply. Sorry for not replying sooner. I was away for a few days.

> Part of the difference in size can be accounted for by looking at the
> structure of a mail item object...  Outlook actually stores three versions
> (HTML, RTF, and plain-text) of the message body in the mail object.  
> A message will always be bigger than the HTML file it was created from

That's what I figured. That it's only in Outlook that the filesize increases.

> From the looks of it the growth in message size of your message is in  
> line with what I see with other messages.

That's very reassuring.
However I'm still curious...
When I click <send> on that 70KB Outlook message, how much actually gets transported across the Internet?
70KB or 6KB ?
I'm concerned that if my message is too large some email systems may treat it as spam.

I wonder how this can be tested.
I sent the Outlook message to my Gmail account.
However as far as I know there's no way to save an email as an HTML file in Gmail as you can in Outlook.

Any suggestions?

Gary

 

by: KravimirPosted on 2009-11-06 at 11:29:28ID: 25762283

> as far as I know there's no way to save an email as an HTML file in Gmail as you can in Outlook.

When looking at a message in Gmail, click the down arrow that is next to the "Reply" button at the top-right corner of the message box, then select "Show Original". Doing that will show you the whole thing, including the headers, which you can remove, if you want. I don't know if any browser can read that format directly, but it will allow you to see how big it is.

 

by: CE101Posted on 2009-11-08 at 00:12:37ID: 25769764

To BlueDevilFan and Kravimir:  

Thank you for your help on this one.
I'm going to close this case now and award the points.

BlueDevilFan wrote earlier...
> Your message does not render well when viewed in Outlook 2007.

I'm interested to see what it looks like.
Could you pls capture it as a PDF file and upload it to EE.
I've created a new case for this at
  http://www.experts-exchange.com/Software/Office_Productivity/Groupware/Outlook/Q_24881331.html

Thanks.

Gary

 

by: BlueDevilFanPosted on 2009-11-08 at 17:46:31ID: 25772951

Gary,

Glad I could help.  I've posted to the new question.

Cheers!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...