EML-3Recommended
Include a plain-text part
Send HTML email as multipart/alternative, with a plain-text part first and the HTML part last.
How to do it
Write the text part with the same content and links as the HTML, not a placeholder. RFC 2046 says clients show the last part they can display, so the HTML goes last. Screen readers, watches, terminal clients and some filters use the text part. Check both parts as Test in the clients your readers use says.
Examples
Plain text example
Content-Type: multipart/alternative; boundary="b1"
--b1
Content-Type: text/plain; charset=UTF-8
Your order 1042 has shipped. Track it: https://example.com/orders/1042
--b1
Content-Type: text/html; charset=UTF-8
<p>Your order 1042 has shipped. <a href="https://example.com/orders/1042">Track it</a>.</p>
--b1--
How to check
In "show original", the top Content-Type is multipart/alternative. A text/plain part comes before the text/html part and holds the full message.
Sources
Related rules
- EML-49 Test in the clients your readers use in Email
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/email/message-basics/plain-text-part">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.