mirror of
https://github.com/bitbaum/mail-kit.git
synced 2026-12-04 04:27:28 +01:00
Extracted from OrangeCat's email layout and made brandable: the brand colour
and the product's name were written into it, it was English only, it had no
dark mode and it took raw HTML for the heading and body.
- renderMail(brand, content) -> { html, text }: content is plain text and
escaped (only **bold**), dark mode, Outlook button, plain-text twin,
preheader, 8 block kinds. Links must be http(s)/mailto.
- The footer is a required key: reason always, unsubscribe {label,url} or
null (null only for mail asked for this minute).
- signUnsubscribe / verifyUnsubscribe (HMAC, no expiry) and
listUnsubscribeHeaders (RFC 8058 one-click).
- sendMail takes headers.
Claude-Session: https://claude.ai/code/session_019MDtmvF6Smf3iMYnGBqi12
Co-authored-by: Claude <noreply@anthropic.com>