Message basics
Build every message to the internet standards, with the right headers, a plain-text part, UTF-8, a declared language and a size inboxes accept.
- Required 1
- Recommended 7
Required
Send the headers every message needs
EML-1Give every message exactly one
From,To,Subject,DateandMessage-ID, in the format RFC 5322 sets out.
Recommended
Point replies to a mailbox someone reads
EML-2Send from an address that accepts replies, or set
Reply-Toto one that does. Never send from an address that bounces.Include a plain-text part
EML-3Send HTML email as
multipart/alternative, with a plain-text part first and the HTML part last.Encode everything as UTF-8
EML-4Declare
charset=UTF-8on every text part, and encode non-ASCII characters in headers as RFC 2047 encoded words.Declare the language and text direction
EML-5State the message language in a
Content-Languageheader. In HTML mail, also set it on the root, and setdirfor right-to-left languages.Accept international addresses
EML-6Accept and store email addresses with non-ASCII characters, and send to them through servers that support SMTPUTF8.
Mark automated messages
EML-7Add
Auto-Submitted: auto-generatedto messages a system sends on its own, such as receipts, alerts and password resets.Keep messages small
EML-8Keep the HTML part under 100 KB and the whole message under 5 MB. Link to large files instead of attaching them.
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">Agent Wranglers email playbook</a>. In code you write, add a comment next to it with the same link.