Send a plain-text part and the headers spam filters expect (1.2.0) #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/deliverability"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Spam filters count a missing
DateorMessage-IDand an HTML-only body against a message (upstream issues #168 and #169). This adds them, plus a proper plain-text part.smtp/mime_message.go(moved out ofsender.go): multipart/alternative with text/plain and then text/html,Date, a randomMessage-IDon the sender's domain, andList-Unsubscribe(amailto:tounsubscribe_email, left out when that is empty). The subject and display names are RFC 2047-encoded. Both parts are quoted-printable, which also keeps every line under SMTP's 998-character limit; the HTML used to go out unencoded.template/text_email.goandplaintext/newsletter.txt: the text is rendered from the same data as the HTML theme. Line endings are normalised on load (a Windows checkout embeds CRLF).newsletter.gobuilds the text and passes it toSendEmailToAllRecipients.List-Unsubscribewithout an address, unique Message-IDs, and the exact text output. The text test also passes with a CRLF template.🤖 Generated with Claude Code