Files
mail-kit/test
CatoandClaude 6285d57ff0 feat(template): one HTML email layout, signed one-click unsubscribe (0.3.0) (#26)
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>
2026-11-10 06:47:34 +01:00
..