Skip to content

v0.34.0 — mail

Choose a tag to compare

@tshafer tshafer released this 11 Jul 00:49

A fluent, edge-safe mailer: mail().to().subject().html().send() over a pluggable Transport (like the database Connection). setMailer(transport, { from }) registers the default. Built-in transports: ArrayTransport (collects to .sent, the default and ideal for tests), LogTransport (logs instead of delivering), and fetchTransport({ url, headers, body }) for provider HTTP APIs (Resend/Postmark/Mailgun) over fetch — the core imports no SDK. send() validates recipient/subject/body/from.

See docs/mail.md.