World Library  
Flag as Inappropriate
Email this Article

HTML email

Article Id: WHEBN0004142564
Reproduction Date:

Title: HTML email  
Author: World Heritage Encyclopedia
Language: English
Subject: Email, Email production, Malware, MIME, Netscape
Publisher: World Heritage Encyclopedia

HTML email

HTML email is the use of a subset of HTML (often ill-defined) to provide formatting and semantic markup capabilities in email that are not available with plain text.

Most graphical email clients support HTML email, and many default to it.[1] Many of these clients include both a GUI editor for composing HTML emails and a rendering engine for displaying received HTML emails. Long URLs can be linked to without being broken into multiple pieces, and text is wrapped to fit the width of the user agent's viewport, instead of uniformly breaking each line at 78 characters (defined in RFC 5322, which was necessary on older text terminals). It allows in-line inclusion of tables, as well as diagrams or mathematical formulae as images, which are otherwise difficult to convey (typically using ASCII art).


Since its conception, a number of people have vocally opposed all HTML email (and even MIME itself), for a variety of reasons.[2] The ASCII Ribbon Campaign is an internet phenomenon advocating that email should continue to be sent in Human Readable ASCII text format. While still considered inappropriate in many newsgroup postings and mailing lists, its adoption for personal and business mail has only increased over time. Some of those who strongly opposed it when it first came out now see it as mostly harmless.[3]

According to surveys by online marketing companies, adoption of HTML-capable email clients is now nearly universal, with less than 3% reporting that they use text-only clients.[4] A smaller number, though still the majority, prefer it over plain text.[5]


Email software that complies with RFC 2822 is only required to support plain text, not HTML formatting. Sending HTML formatted emails can therefore lead to problems if the recipient's email client does not support it. In the worst case, the recipient will see the HTML code instead of the intended message.

Among those email clients that do support HTML, some do not render it consistently with W3C specifications, and many HTML emails are not compliant either, which may cause rendering or delivery problems, especially for users of Gmail.

In particular, the tag, which is used to house CSS style rules for an entire HTML document, is not well supported, sometimes stripped entirely, causing in-line style declarations to be the de facto standard, even though they are not optimal from a semantic web point of view.[6] Although workarounds have been developed,[7] this has caused no shortage of frustration among newsletter developers, spawning the grassroots Email Standards Project, which grades email clients on their rendering of an acid test, inspired by those of the Web Standards Project, and lobbies developers to improve their products.[8] To persuade Google to improve rendering in Gmail, for instance, they published a video montage of grimacing web developers,[9] resulting in attention from an employee.

"Email standards project" Acid test comparison (as of January 2013)[1]
Clients Result (as of)
AOL Webmail Solid support (13 July 2011)
Apple iPhone Solid support (13 July 2011)
Apple iPad
Apple iPod Touch
Apple Mail Solid support (28 November 2007)
Apple MobileMe Solid support (15 August 2008)
Eudora OSE codenamed "Penelope"
Solid support (28 November 2007)
Microsoft Entourage Solid support (28 November 2007)
Mozilla Thunderbird Solid support (28 November 2007)
Windows Live Mail Solid support (28 November 2007)
Windows Mail Solid support (28 November 2007)
Yahoo! Mail Beta Solid support (8 July 2011)
Windows Live Hotmail Some improvement recommended (8 July 2011)
Google Gmail Improvement recommended (13 July 2011)
Lotus Notes 8 Improvement recommended (28 November 2007)
Microsoft Outlook 2007 Improvement recommended (28 November 2007)


Some senders may excessively rely upon large, colorful, or distracting fonts, making messages more difficult to read.[10] For those especially bothered by this formatting, some user agents make it possible for the reader to partially override the formatting (for instance, Mozilla Thunderbird allows specifying a minimum font size); however, these capabilities are not globally available. Further, the difference in optical appearance between the sender and the reader can help to differentiate the author of each section, improving readability.

Multi-part formats

Many email servers are configured to automatically generate a plain text version of a message and send it along with the HTML version, to ensure that it can be read even by text-only email clients, using the Content-Type: multipart/alternative, as specified in RFC 1521.[11][12][13] The message itself is of type multipart/alternative, and contains two parts, the first of type text/plain, which is read by text-only clients, and the second with text/html, which is read by HTML-capable clients. The plain text version may be missing important formatting information, however. (For example, a mathematical equation may lose a superscript and take on an entirely new meaning.)

Many mailing lists deliberately block HTML email, either stripping out the HTML part to just leave the plain text part or rejecting the entire message.

The order of the parts is significant. RFC1341 states that: In general, user agents that compose multipart/alternative entities should place the body parts in increasing order of preference, that is, with the preferred format last.[14] For multipart emails with html and plain-text versions, that means listing the plain-text version first and the html version after it, otherwise the client may default to showing the plain-text version even though an html version is available.

Message size

HTML email is larger than plain text. Even if no special formatting is used, there will be the overhead from the tags used in a minimal HTML document, and if formatting is heavily used it may be much higher. Multi-part messages, with duplicate copies of the same content in different formats, increase the size even further. The plain text section of a multi-part message can be retrieved by itself, though, using IMAP's FETCH command.[15]

Although the difference in download time between plain text and mixed message mail (which can be a factor of ten or more) was of concern in the 1990s (when most users were accessing email servers through slow modems), on a modern connection the difference is negligible for most people, especially when compared to images, music files, or other common attachments.[16]

Security vulnerabilities

HTML allows for a link to have a different target than the link's text. This can be used in phishing attacks, in which users are fooled into believing that a link points to the website of an authoritative source (such as a bank), visiting it, and unintentionally revealing personal details (like bank account numbers) to a scammer.

If an email contains web bugs (inline content from an external server, such as a picture), the server can alert a third party that the email has been opened. This is a potential privacy risk, revealing that an email address is real (so that it can be targeted in the future) and revealing when the message was read. For this reason, some email clients do not load external images until requested to by the user.

During periods of increased network threats, the US Department of Defense converts all incoming HTML email to text email.[17]

The multipart type is intended to show the same content in different ways, but this is sometimes abused; some email spam takes advantage of the format to trick spam filters into believing that the message is legitimate. They do this by including innocuous content in the text part of the message and putting the spam in the HTML part (that which is displayed to the user).

Most email spam is sent in HTML for these reasons, so spam filters sometimes give higher spam scores to HTML messages.

See also


  1. ^ Configuring Mail Clients to Send Plain ASCII Text — E-mail client programs
  2. ^ HTML Email: Whenever Possible, Turn It Off!
  3. ^ HTML Email: The Poll (Scot Hacker, originator of the much-linked-to Why HTML in E-Mail is a Bad Idea discusses how his feelings have changed since the 1990s)
  4. ^ "Email Marketing Statistics and Metrics". Retrieved 2012-06-24. 
  5. ^ "Real-World Email Client Usage: The Hard Data". Retrieved 2014-05-21. 
  6. ^ Schnure, Don (November 18, 2014). "HTML Email Formatting Tips". Retrieved 21 November 2014. 
  7. ^ Dialect . "Premailer: make CSS inline for HTML e-mail". Retrieved 2012-06-24. 
  8. ^ "Why we need standards support in HTML email". Campaign Monitor. Retrieved 2012-06-24. 
  9. ^ "The 2008 Gmail Appeal | Email Standards Project". Retrieved 2012-06-24. 
  10. ^ Shobe, Matt (2004-10-12). "A pretty fair argument against HTML Email". Retrieved 2012-06-24. 
  11. ^ RFC 1521 7.2.3. The Multipart/alternative subtype
  12. ^ "TN1010-11-2: Multipart/Alternative — Gracefully handling HTML-phobic email clients." (PDF). Retrieved 2012-06-24. 
  13. ^ "Sending HTML and Plain Text E-Mail Simultaneously". 2000-04-28. Retrieved 2012-06-24. 
  14. ^ "RFC1341 Section 7.2 The Multipart Content-Type". Retrieved 2014-07-15. 
  15. ^ "Do we really want to send web pages in e-mail?". Retrieved 2012-06-24. 
  16. ^ HTML Email — Still Evil?
  17. ^ "DOD bars use of HTML e-mail, Outlook Web Access". Retrieved 2014-05-26. 
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.