Tables no longer needed for HTML email

170 points by llcooliovice 2 years ago | 115 comments
  • illiarian 2 years ago
    The problem with AMP email mentioned in the article is that it just appeared because someone on the gmail team wanted it. There was no process for getting it out, GMail as the dominant email provider strongarmed a few other providers into supporting it. All questions and discussions on AMP's github were shut down by the project leadership that would go on to write propganda pieces on how AMP development was open to everyone.

    Just because there's some marginal benefit to AMP for Email, it doesn't make it good.

    • tyingq 2 years ago
      That the AMP part self destructs after 30 days, and falls back to html, is really weird and doesn't fit the spirit of email at all.
      • toastal 2 years ago
        Pro tip: install an AMP redirector script/add-on in your browser to not support Google trying to own the web.
    • JoshTriplett 2 years ago
      Style whatever you like however you like, but please do include a functional text/plain part in your multipart/alternative email, and please ensure it includes all the requisite information and links and URLs that the HTML version does.

      I regularly encounter HTML email that has an empty text/plain part, or an error message, or a converted text version of an email that's missing the most critical information. For instance, I often get "confirm your registration/email" emails whose text/plain parts leave out the confirmation link or confirmation code.

      • zoom6628 2 years ago
        Html email is a pox. I set my email clients to use RTF as it’s simpler, more consistent, and one doesn’t send huge email messages full of utterly useless crap (otherwise known as html tags and stuff). I’ve been using email for 40 years and has been perennially a problem of inconsistent email rendering since html became a format option.

        It was however a highly reliable and simple indicator of spam and junk. IF format = HTML then isJunk.

        Nowadays with the mindless guzzling at the web junk firehose html email is now ubiquitous and consistent in rendering it seems. But With no improvement in copy or relevance. But it does have bling!

        • hnlmorg 2 years ago
          > I set my email clients to use RTF as it’s simpler, more consistent, and one doesn’t send huge email messages full of utterly useless crap (otherwise known as html tags and stuff)

          Having written an RTF WYSIWYG editor back in the late 90s, I very much disagree that RTF is any better than HTML for any reasons you’ve cited.

          It’s still an ASCII encoded format with font tags and alike. It just opts for curly braces instead of triangle brackets.

          The problem with HTML emails isn’t the HTML specification. It’s that

          1. Half of email clients don’t support that specification correctly.

          2. People abused HTML in emails

          However those two points could be just as equally relevant had RTF became the dominant document mark up for the web.

          • eviks 2 years ago
            By the way, is there a great modern RTF alternative?
        • lionkor 2 years ago
          I send most of my emails as plaintext - have yet to find a problem with it.
          • unsupp0rted 2 years ago
            People need very large red "click here" call-to-action buttons to click inside emails. With plain text email you can't have those. Also people need a sampling of your latest blog posts in a table inside all your emails, with a stock photo in the left column and the article title and snippet in the right column.
            • lionkor 2 years ago
              Not sure if sarcasm, but I really never got any value from anything like that.
            • ornornor 2 years ago
              The “problem” is that you can’t embed trackers, images for tracking, and other marketing crap.
              • lucumo 2 years ago
                Yes. Famously, this is why stuff on paper ever only uses a single font with empty line paragraph separators, and nothing else.
              • eviks 2 years ago
                The problem is pretty obvious - you can't format plain text
              • 2 years ago
              • mtVessel 2 years ago
                These market share numbers cannot be right, can they? iPhones represent maybe 20% of smartphones in use, and Macs are maybe 15% of all desktops. There's no way that Apple Mail has 60% of the email market.
                • jsnell 2 years ago
                  I think what is happening is that Apple Mail prefetches all images when the email is received (over a privacy-preserving proxy). So the Apple Mail users show up as opening every single email, which also artificially boosts their market share.

                  For most other clients, not only does the user need to open the email but they also need to allow images to be shown for that sender. This will artificially deflate both open rates and market share.

                  • someweirdperson 2 years ago
                    > I think what is happening is that Apple Mail prefetches all images when the email is received (over a privacy-preserving proxy).

                    How does this privacy-preserving work, where the leak is the specific resource being read?

                    • zwily 2 years ago
                      Doesn’t leak your IP address. It also doesn’t tell the server you opened the email, or when you opened it, because it always fetched them whether you open or not.

                      Basically all the server learns is that the email address went to an Apple Mail client.

                  • Gigachad 2 years ago
                    Depends on your market/country. In the US for young people, iPhones make up 87% currently.

                    The global average is mostly dictated by whatever India and China use which is low budget androids. But for sending emails, you are often sending to specific countries only.

                    • zarzavat 2 years ago
                      Android is dominant in pretty much the entire world except for the US and Canada (maybe some European counties too). Dollars are expensive, and iPhones are priced in dollars. Plus, iMessage is a must have in the US but nobody cares about it outside of the US. I have more digits than iMessages I have sent in my lifetime.
                      • sbuk 2 years ago
                        Your immediate and slightly extended circle doesn’t equate to the entire planet. In the UK for instance, it’s closer to 50/50.

                        Also, much like Windows on the desktop, the email side of things is going to be skewed by business use; I would wager (without the data to hand) that iPhone and iOS is dominant in business, due to the perceived notion of better security and similarity across devices. Though the majority of mailflow globally is spam, or at least greymail, business email outweighs personal use of email. It’s also likely that the majority of Android handsets are merely used as dumb-phones based on engagement. Based on app metrics, iPhone users are more likely to use their device. That is why iOS mail in particular has the market share.

                        • Gigachad 2 years ago
                          It’s the majority in Australia too. Point is that the global stats look nothing like the localised user stats most people here would be emailing.
                        • peoplefromibiza 2 years ago
                          > In the US for young people, iPhones make up 87% currently.

                          but the global US market is 55/45 not really a huge difference

                          > The global average is mostly dictated by whatever India and China use

                          Not really. It also depends on market penetration, in the west is around >90%, In China is below 50%, in India ~60%.

                          OTOH the fact that billion people can effectively communicate using cheap Android phones, means that expensive iPhones are not actually a necessity, but a luxury, we could get rid of them and still be able to do what we already do everyday. I

                        • Illniyar 2 years ago
                          This statistics are misleading as they often rely on tracking images. But all outlooks don't load images by default.
                          • 2 years ago
                          • watersb 2 years ago
                            To me, the interesting bit here is that Outlook is still using the Microsoft Word layout engine.

                            That's what's going away: Outlook on Windows moves to the Chromium-lineage MS Edge web layout.

                            I idly wonder about legacy DIME (binary multipart MIME encoding from 20th Century Office products), but it's easier to run entire legacy systems inside a web render these days.

                            One of the Word layout engines really boosted Microsoft's dynamic web browser implementation in the early days; they had this compact, fast thing they could use already. IE 4.0 era.

                            • koito17 2 years ago
                              This reminds me it was only five months ago a client sent a bug report about our software's e-mail notifications having broken layout. Turns out they were still using Outlook 2010, which only implements HTML 2.1 or some ancient standard that wasn't even HTML 4.01. We also learned that styling only applies to <table> elements, not <div> elements. So we re-wrote all <div>s to <table>s, but layout was still subtly broken. Eventually we decided it wasn't worth the hassle to consider an increasingly niche e-mail client that couldn't even bother to implement an HTML specification from 1999.
                              • chrismorgan 2 years ago
                                It’s not just Outlook 2010 that uses MSO, which is a buggy and incomplete implementation of HTML 3.2; the current stable versions of Outlook (for Windows) and Windows Mail do. This might be changing in the new version supposed to be released this year, not certain. MSO has had approximately two changes in the last 25 years (one to support high-DPI displays, can’t remember the other I know of).
                                • Hendrikto 2 years ago
                                  > Eventually we decided it wasn't worth the hassle to consider an increasingly niche e-mail client that couldn't even bother to implement an HTML specification from 1999.

                                  Glad you came around. This is probably the correct decision.

                                • silverwind 2 years ago
                                  Markdown would be a pretty good fit as a compromise between HTML and plaintext for email. I wonder why no one has thought about that yet.

                                  Markdown syntax takes a bit of time to learn, but with images, tables, limited HTML tags, I think it would suffice for 99% of use cases and remove the need for all the sanitization that current clients do.

                                  • chrismorgan 2 years ago
                                    Markdown is an authoring format. It’s OK as that. But it’s completely unsuitable as a publishing format, because there’s way too much variation of interpretation. Remember also that Markdown is built on top of HTML, more or less—you’d have to either ban all HTML tags (… which rather makes it not Markdown), or have just the same problems as before, but now worse.

                                    People have suggested Markdown for email quite a few times. It’s a total non-starter, absolutely no chance of anyone doing it in the next few years at least (and I strongly doubt Markdown in any form will ever make it in like that).

                                    • fanf2 2 years ago
                                      “the single biggest source of inspiration for Markdown’s syntax is the format of plain text email”

                                      https://daringfireball.net/projects/markdown/

                                      • jasonjayr 2 years ago
                                        Mail clients would need to learn to handle the markdown MIME type, and realize it could be plain text, or run through a converter to show as rich text.

                                        But sadly too many folks use mail clients that render and compose HTML, or worse, and there would be no real incentive to switch. It might be a function of the sending client to send the prerendered HTML along with the plain text markdown part.

                                      • computerfriend 2 years ago
                                        Luckily there is a solution to this compatibility mess.

                                        https://useplaintext.email/

                                        • helmholtz 2 years ago
                                          No.

                                          What if I need to share tabular data? An annotated image with discussion straight after it? Equations? People will have you make everything an attachment but that is much worse in terms of context switching. Absorbing new information is easier when the image is inline with text. Especially after it's been forwarded three times. We NEED formatted email, whether in the guise of a word document or HTML.

                                          • denton-scratch 2 years ago
                                            > We NEED formatted email

                                            Don't agree. Some people WANT formatted email (marketers). If you want tight control of layout, send me a PDF - that's what it's for.

                                            • Jiocus 2 years ago
                                              Tabular data isn't hard,

                                                  | Type  | Host/Name     | Value/Points to                 |
                                                  | ----- | ------------- | ------------------------------- |
                                                  | CNAME | s1._domainkey | s1._domainkey.example.com       |
                                                  | CNAME | s2._domainkey | s2._domainkey.example.com       |
                                                  | TXT   | _dmarc        | v=DMARC1; p=quarantine; adkim=s |
                                              
                                              Even .csv formatted stuff fares OK in plaintext.

                                              But I agree with you on context and having data visible right there in the email. It's often the case that people forgo using email as the functional communication technology it is and settles with attachments only and the canned byline.

                                              I want to see full markdown, mermaid and the like in email.

                                              • notRobot 2 years ago
                                                1. Tabular data in ASCII like that is really bad for accessibility

                                                2. It looks terrible on mobile: https://i.imgur.io/ovzaJDG_d.webp?maxwidth=640&shape=thumb&f...

                                                • Dudeman112 2 years ago
                                                  I'm on mobile. The tabular data did not work, obviously

                                                  Ironic

                                                  • eviks 2 years ago
                                                    Except it is hard, even your simplistic example fails - I can't read it on one of the most popular devices - mobile phones

                                                    Also, it's awful for any serious editing

                                                    Also, add a bit of *formatting* in the cells, and all your plain readability stemming from tabular alignment is gone

                                                  • zx8080 2 years ago
                                                    > NEED formatted email

                                                    Probably, NO.

                                                    For business things to share some table data use ascii preformatted tables. They look nice and clean!

                                                    Reference an image attached like [1] or [image-name.jpg] (see attached).

                                                    Or just attach pdf if needs to pass slides.

                                                    What we don't need is a formatted marketing crap!

                                                    • notRobot 2 years ago
                                                      ASCII tables are really bad for accessibility, screen readers aren't able to read them well at all.
                                                  • eviks 2 years ago
                                                    There is a solution, but plain ugly text is not it, this is throwing the baby out with the bathwater.
                                                    • silverwind 2 years ago
                                                      No image support is a show stopper.
                                                      • slondr 2 years ago
                                                        I’d say it’s a killer app actually.

                                                        Of course plaintext email does support images, it’s called MIME.

                                                    • pembrook 2 years ago
                                                      It’s great outlook is finally ditching the 90s MS Word html rendering engine, but of course most big orgs do not update to the latest version for years.

                                                      So we’re still many years away from being able to finally dump tables.

                                                      And there’s still Gmail, which is also a giant pain-in-the-arse with basic things like media queries.

                                                      Then of course there’s the real question, what the hell is the point anyways? 82% of emails are primarily opened on mobile now (and a huge chunk on dark mode). Yet, hilariously, you go to sites like reallygoodemails.com and you see mini-desktop websites that mostly nobody will ever see in that format.

                                                      Why waste developer hours building mini-websites for a medium that is fundamentally ephemeral?

                                                      • oezi 2 years ago
                                                        With the Office365 improvements (in particular to Excel) in recent years I would have assumed that many orgs are on the update channels for Office rather than doing manual rollouts.
                                                        • denton-scratch 2 years ago
                                                          > fundamentally ephemeral

                                                          I've had bosses that required their mail system (supported by me) to retain essentially all of their inbound and outbound email indefinitely. Many mobile devices seem to have merged email and messaging; messaging may be ephemeral, but email isn't the same as messaging.

                                                        • denton-scratch 2 years ago
                                                          Most of these "problems" with email seem to arise from problems with the big online mail "clients", like gmail. I didn't notice Thunderbird in their list of email clients (I use Thunderbird).

                                                          I deplore HTML-formatted email anyway. The last time I had to generate HTML-formatted email, the main problem MUA was Microsoft Outlook; I didn't realize that the problem was that Outlook used Microsoft Word's HTML renderer (TIL). I've always hated HTML-formatted email anyway, so jumping through the various hoops to generate HTML email automatically was a real drag.

                                                          The article's focus on the wonders of AMP as a solution is scary. AMP is a Google-controlled technology, widely-despised. Making AMP the solution to HTML email looks like a way of tightening Goo's already-tight grip on email's throat.

                                                          [Edit] So now a properly-constructed HTML email becomes a multipart with a minimum of three parts: text/plain, HTML and AMP. I don't see this as a wonderful new world.

                                                          • Eupolemos 2 years ago
                                                            I've made/remade the HTML emails for the B2B company where I work, so I read this with an eye for practicality.

                                                            The big all-important thing is that the Microsoft Word styling is out. It hurts in _so_ many ways when making a mail to be sent via Mailchimp/Mandrill.

                                                            Tables is just the example which is easy to convey, something everybody understands. Explaining why a margin/padding/whatever working slightly differently in Microsoft Word (AKA Outlook) and gmail can ruin a few of your days is more difficult.

                                                            But probably anyone who has thought "I'll just insert this image here in this Word document, what is the worst that could happen" knows what I mean. Here's a "funny": https://www.reddit.com/r/funny/comments/2glhbp/moving_a_pict...

                                                            Making an email that retains the styling in both gmail and outlook, even when the customer replies to it, can be a major endeavor. It sounds like that is changing. Thank God.

                                                          • fwlr 2 years ago
                                                            I never thought about the fact that we’re emailing what are almost full webpages to each other. Or, well, to be precise, companies are emailing webpages to us.
                                                            • quickthrower2 2 years ago
                                                              Which isn’t all bad, because the web page I was emailed 20 years ago still loads.
                                                            • pupppet 2 years ago
                                                              Is Outlook really only at 4.42%? Hard to believe with how ubiquitous Office 365 is.
                                                              • zdragnar 2 years ago
                                                                The last two places I worked at that had office 365, everyone just used the web interface. It was pretty miserable but beat having a separate application just for email.
                                                                • Noumenon72 2 years ago
                                                                  A separate application is nicer because you can switch to it with alt-tab or number keys instead of finding it among all your other tabs.
                                                                  • kzrdude 2 years ago
                                                                    You can pin the tab in Firefox. And there's a shortcut for switching to the first tab.
                                                                    • ajb 2 years ago
                                                                      That's solved by keeping it in its own window.
                                                                      • heckerhut 2 years ago
                                                                        PWA is your friend
                                                                  • forgotmypw17 2 years ago
                                                                    I think tables for layout are severely underrated...
                                                                    • ctippett 2 years ago
                                                                      Fun fact: Hacker News itself is structured predominantly with tables. Every comment/thread creates a new table nested within the context of its parent's table. It's tables all the way down.
                                                                      • Xorakios 2 years ago
                                                                        Until you get to the turtles...
                                                                      • gscott 2 years ago
                                                                        Tables are reliable. Css is insane. It is hard to track down where a style is coming from.
                                                                        • creata 2 years ago
                                                                          1. Can't you just use the style inspector in your browser?

                                                                          2. Imo, Grid is a much easier to read alternative to most uses of tables.

                                                                          • goto11 2 years ago
                                                                            Tables does not render reliably across platforms. This is because the algorithm for sizing columns and cells was never standardized.

                                                                            Back when tables were the only tool available for layout, professionals combined tables with 1x1 pixel transparent gifs which could be scaled to force cells to have a fixed size.

                                                                            I guess you could argue that tables combined with spacer-gifs are reliable. But solution exists which are just as reliable, much easier to use, and better for accessibility.

                                                                            > It is hard to track down where a style is coming from.

                                                                            This is an orthogonal concern. If you don't like CSS inheritance and cascade, you can just use style attributes directly on elements. I believe Tailwind uses a similar approach through class attributes.

                                                                          • samastur 2 years ago
                                                                            I beg to differ. Nothing more miserable than debugging email templates with tables nested to the x-th degree.
                                                                            • Eupolemos 2 years ago
                                                                              Fair enough.

                                                                              Despite the headline, it really isn't the important part. The important thing is getting rid of the mso styling.

                                                                              • Dalewyn 2 years ago
                                                                                4 hours as of this comment and nobody has mentioned the real reason (accessibility) that tables were ditched for CSS?

                                                                                I'm getting fuck old...

                                                                                (I like table layouts, now git off mah lawn ya green youngins.)

                                                                                • asddubs 2 years ago
                                                                                  tables have some annoying edge cases, like e.g. they interact poorly with responsive images
                                                                                • hdjjhhvvhga 2 years ago
                                                                                  > The new Outlook switches rendering engines from Microsoft Word to Edge.

                                                                                  This doesn't change the fact that only a portion of Outlook users use the new version, so the "no longer needed" statement in the headline is a bit exaggerated.

                                                                                  • ryanjshaw 2 years ago
                                                                                    Really confused. Article is dated "April 2, 2023" and linked Microsoft blog is dated "SEP 28, 2022" and talks about a preview for New Outlook going live, but the article says "It's finally here"?
                                                                                    • technion 2 years ago
                                                                                      Microsoft "insider" releases are at least six months the from a general release.
                                                                                    • kuon 2 years ago
                                                                                      I always use plain text emails, but I won't debate it here, and I understand why HTML email exist.

                                                                                      But I want to point japanese plain text marketing emails. Those are marvels of unicode asciiart blocks, separators/lines and arrows. They even send HTML emails as text sometime, and the only HTML styling is selecting a font.

                                                                                      • almost 2 years ago
                                                                                        Tables? I’ll be glad when I no longer need to use weird embedded VML just to get background images or rounded corners! The Word HTML renderer was such a weird choice and such a step backwards when it was chosen. I think this article jumps the gun a bit but once the usage of versions of outlook using that fall enough for me to ignore it I’ll be very happy.

                                                                                        AMP seems a weird thing to talk about as something that helps. Even if you support AMP you still need to make the regular HTML content work so it’s just extra work to create, maintain and test. Why bother?

                                                                                        • 0x073 2 years ago
                                                                                          Best thing would be a specific html standard for emails that is defined by a group of the top email providers like whatwg.

                                                                                          I don't care what this html will look like as long it's can be used without workarounds.

                                                                                          • zagrebian 2 years ago
                                                                                            On iOS, Apple Mail supports 92% of the tested HTML/CSS features, while Gmail supports only 36%. What browser engine does Gmail use to have such poor results? Isn’t it all WebKit on iOS?
                                                                                            • tambourine_man 2 years ago
                                                                                              “In order to actually send an AMP email, you’re email service provider needs to support AMP”

                                                                                              I think you meant your

                                                                                              • donohoe 2 years ago
                                                                                                Related and Un-related PSA:

                                                                                                Please take a moment to remove formatting and images from your own email signatures. It’s rarely useful and always clutter.

                                                                                                Thank you.

                                                                                                • ksec 2 years ago
                                                                                                  Completely Off Topic: The new Layout for Office 365 as shown in the Outlook video looks a lot like Lotus Note.
                                                                                                  • EGreg 2 years ago
                                                                                                    Call me when HTML Email Composer on Android can support images (yawn)
                                                                                                    • ggm 2 years ago

                                                                                                        $ show cur -noshowproc
                                                                                                      
                                                                                                      (Although you can set MH's mime preferences for mshow to not have to do this)
                                                                                                      • NoZebra120vClip 2 years ago
                                                                                                        I used MH in the mid-90s. I was inspired by cks@cs.utoronto.ca. I worked at a regional ISP, and my boss used PINE (which was like Nano for email) and the power users used Elm (which was a popular MUA before it was known as a language). Yet, I used MH.

                                                                                                        I decided on MH because I had a habit of subscribing to mailing lists, or at least being enrolled on them, without caring too much whether I read the messages. So I wanted a sort of NNTP-newsfeed-like way of splitting up all the mail into folders so that I could get work done while ignoring whatever was on those lists.

                                                                                                        I believe I used procmail, piping everything that came in through ridiculous regexps and having MH sort them into mail folders, as it was wont to do. It was lovely, and I seem to recall always having a zero-size mail spool because even the unread stuff was going into a folder for later checking. I didn't use BIFF. Remember biff, not the VIC-20 user, but the mail notifier. I didn't need a mail notifier, because I always had mail. It was just neverending. MH helped me come to terms with that.

                                                                                                        My highly customized MH environment was lost to the four winds when I left that regional ISP, and since I had no equivalent shell-based multi-user networked system in 1994, I didn't recreate MH and it fell by the wayside, for me, but probably not for Chris Siebenmann.

                                                                                                        • ggm 2 years ago
                                                                                                          It still works. mbsync/isync with an oauth2 proxy means it even works with O365 and Google mail. nmh is actively maintained.
                                                                                                      • llcooliovice 2 years ago
                                                                                                        With the modernisation of Microsoft Outlook, if will finally be possible to code an email in a semi-modern way.
                                                                                                        • marssaxman 2 years ago
                                                                                                          Never were needed, of course.

                                                                                                          All I ever read is the plain text version anyway.

                                                                                                          • butt_____hugger 2 years ago
                                                                                                            [dead]
                                                                                                            • maxchehab 2 years ago
                                                                                                              I recently found https://react.email and really enjoy using it instead of mjml, or whatever else is available!
                                                                                                              • Raed667 2 years ago
                                                                                                                Despite some pushback, I worked on something similar (internally) for a previous company.

                                                                                                                Having React/JSX for email templating (even if it was on top of MJML) is a great win for productivity.

                                                                                                                All our front-end devs knew React, a couple knew Jinja, Pug or mustache. And every-time a team needed to add a new email template, their frontend devs needed to learn those again.

                                                                                                                Instead they could just write email templates as they would write their regular components the way they do every day.

                                                                                                                Glad to be validated on this!

                                                                                                                • Escapado 2 years ago
                                                                                                                  Uhh I am saving this one! Thanks! I remember the last time I had to set up a few mail templates it was so incredibly painful. Especially the testing of it is so painstakingly slow.