HTML email: Difference between revisions

Content deleted Content added
m Removed line re: "Especially for users of gmail" as no citation and was from 2015. Things changed with gmail in 2016 and they started to support a LOT more CSS use. See this article for info: https://www.smashingmagazine.com/2017/01/introduction-building-sending-html-email-for-web-developers/ under the heading "GMAIL SUPPORT FOR INLINE CSS AND MEDIA QUERIES"
Line 13:
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]].{{cn|date=March 2015}}
 
In particular, the <code><nowiki><head></nowiki></code> 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|''de facto'' standard]], even though in-line style declarations are inefficient and fail to take good advantage of HTML's ability to separate style from content.{{cn|date=January 2015}} Although workarounds have been developed,<ref>{{cite web|author=Dialect <http://dialect.ca/> |url=http://premailer.dialect.ca/ |title=Premailer: make CSS inline for HTML e-mail |publisher=Premailer.dialect.ca |date= |accessdate=2012-06-24}}</ref> this has caused no shortage of frustration among newsletter developers, spawning the [[grassroots]] [http://www.email-standards.org/ 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.<ref>{{cite web|url=https://www.campaignmonitor.com/blog/post/2468/why-we-need-web-standards-supp-1 |title=Why we need standards support in HTML email |publisher=Campaign Monitor |date= |accessdate=2012-06-24}}</ref> To persuade [[Google]] to improve rendering in [[Gmail]], for instance, they published a video montage of grimacing web developers,<ref>{{cite web |url=http://www.email-standards.org/gmail-appeal |title=The 2008 Gmail Appeal &#124; Email Standards Project |publisher=Email-standards.org |date= |accessdate=2012-06-24 |deadurl=yes |archiveurl=https://web.archive.org/web/20120515030536/http://www.email-standards.org/gmail-appeal |archivedate=15 May 2012 |df=dmy-all }}</ref> resulting in attention from an employee.