Guide · Sender rules

The plain-text part of an HTML email

An HTML email can carry a plain-text version of the same message, and for most automated and marketing mail it should. The two bodies travel together as a multipart/alternative message: RFC 2046 says the parts are interchangeable versions of the same content, ordered from the simplest to the most faithful, and the reader's mail program shows the last one it can display. Amazon SES says that when you send to many recipients it makes sense to send both HTML and text, and that readers with text-based clients need URLs they can copy into a browser. Classic Outlook has a setting that reads all standard mail as plain text, so some people see only your text part. Write that part as a real message, with the same facts, labelled links and, for marketing mail, the opt-out. A text part is not a deliverability fix: none of the sources below says that a missing one gets mail filtered, and a link in the body never replaces one-click unsubscribe headers.

Reading time
7 min

What multipart/alternative is

RFC 2046 (section 5.1.4) defines multipart/alternative. Its rules, in short:

A minimal message looks like this:

MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="b1"

--b1
Content-Type: text/plain; charset="utf-8"

Your workshop is on 12 March at 14:00 CET.

Directions to the venue:
https://example.com/workshop/directions

--b1
Content-Type: text/html; charset="utf-8"

<p>Your workshop is on <strong>12 March at 14:00 CET</strong>.</p>
<p><a href="https://example.com/workshop/directions">Directions to the venue</a></p>

--b1--

Most teams never build this by hand. Amazon SES's email format page says that for a simple (formatted) send, SES assembles the multi-part MIME message itself; raw sending is for when you want to set the MIME parts and content types yourself.

Why send both

Some people read the text. Microsoft's support page Read email messages in plain text in classic Outlook describes a Trust Center option, "Read all standard mail in plain text", in Outlook for Microsoft 365 and Outlook 2016 to 2024. With it on, formatting, pictures and links can be turned off for every message the person opens, until they choose Display as HTML for one message. Mailchimp's accessibility guide says many people who use screen readers prefer plain-text emails because they give just the core content.

The sending services recommend it. The SES Body reference says you can specify text, HTML or both, and that with both the message should display correctly in the widest variety of email clients. It describes the text body as being for text-based clients and clients on high-latency networks, such as mobile devices. Mailchimp's plain-text campaign page says it automatically creates and sends a plain-text version of each HTML email to recipients who prefer to receive them.

What it does not do. Google's email sender guidelines ask that messages follow RFC 5322 and that HTML messages follow HTML standards; they do not mention a plain-text part. They do warn that hiding content with HTML and CSS might cause messages to be marked as spam. So a text part helps people, but it is not a requirement we found in Gmail's rules, and it will not repair broken HTML for readers whose program shows the HTML part.

Write a text part people can use

These are our recommendations, drawn from the sources above:

Click tracking rewrites links, and in a text part the reader sees the rewritten address. Check what your service does:

Whichever you choose, keep the label next to each URL so the reader knows where it goes. A text view loads no images, so an open pixel cannot fire there; clicks are the signal you keep (Apple Mail Privacy Protection and your numbers).

Unsubscribe: the body link and the header

Google's sender guidelines, in their requirements for sending 5,000 or more messages a day to Gmail accounts, say marketing and subscribed messages must support one-click unsubscribe and include a clearly visible unsubscribe link in the message body. Google requires both, as two separate items, so a URL in your text part is the body link only: it does not stand in for the List-Unsubscribe and List-Unsubscribe-Post headers (one-click unsubscribe, Gmail and Yahoo sender requirements). Transactional mail has different rules (transactional vs. marketing email).

Check before you send

These are our recommendations:

  1. Generate both bodies from the same data. In code, render HTML and text from one template model, so a changed date or amount reaches both.
  2. Review a generated text part. If your service converts HTML to text, read the result after the HTML is final, and check that every button, table and image-only block came through as words and URLs.
  3. Send a test and read the text. Open a delivered copy in a client set to plain text, or view the raw message, and check each URL, the support address and the unsubscribe line. Try it with optional personalization fields empty.
  4. Give each template an owner. A newsletter with a good text part tells you nothing about the text part of your password reset or invoice.
  5. Judge delivery separately. Check authentication, complaints and the receiving provider's responses on their own; a good text part does not stand in for them (Gmail's Promotions tab).

Questions

Do I need a plain-text part if my email is already plain text?

No. A message sent only as text/plain already is the plain-text version. multipart/alternative is for sending the same content in more than one format.

Will a missing text part send my email to spam?

None of the sources we checked says so. Google's sender guidelines ask for RFC 5322 formatting and HTML that follows HTML standards, and warn against hiding content with HTML and CSS; they do not mention a text part.

Which part will my reader see?

The reader's program decides. RFC 2046 says it should display the last alternative it can show; with text first and HTML last, a program that displays HTML shows the HTML part. A person who reads all mail as plain text in classic Outlook sees the text, and SES says a client chooses based on its capabilities.

Does the unsubscribe link in my text part satisfy Gmail's one-click rule?

No. Google requires both one-click unsubscribe, which works through the List-Unsubscribe and List-Unsubscribe-Post headers, and a visible unsubscribe link in the body, as separate items. A link in your text part is the body link only, so keep both the headers and a visible link in each body.

Sources

How we wrote this: drafted by the email-validation.org team with the help of AI writing tools, from our product documentation and the sources linked in the text.

Get up to 500 free credits. No card needed.

New accounts get 500 free credits (100 when you sign up with a free email provider such as Gmail, Outlook or Yahoo, another personal mailbox such as a paid one like Fastmail or one from your internet provider, or an address from a relay or alias service). Try it on your own list before you buy.

Updated · Maintained by: Email Validation LLC