Skip to content
You're viewing documentation for v1.0.0. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Lettermint

Send through Lettermint's European transactional email API with CC, BCC, reply-to, headers, metadata, tags, base64 attachments, idempotent retries, and routes.

Capabilities

Repeated headers Idempotency Scheduling Personalized
No native No expanded

These values come from the adapter’s exported capabilities declaration. The field support matrix covers normalized message fields.

The Lettermint adapter calls Lettermint’s POST /v1/send endpoint with plain fetch. Lettermint is a European transactional email service with a REST API, SMTP relay, routes, and built-in open/click tracking. The adapter maps the normalized EmailMessage straight onto its send payload and authenticates with the x-lettermint-token header.

Lettermint logo
LettermintLive check available@opencoredev/email-sdk/lettermint
Provider docs

Configure

Create a Lettermint API token (prefixed lm_) for the project you send from, and verify the sending domain.

PropType
apiTokenstring

Lettermint API token (prefixed lm_), sent in the x-lettermint-token header.

Typestring
route?string

Optional Lettermint route slug. Defaults to the project's default route.

Typestring
baseUrl?string

Override the API origin, e.g. for a proxy.

Typestring
Default"https://api.lettermint.co/v1"
fetch?typeof fetch

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch
headers?Record<string, string>

Extra headers merged into every request.

TypeRecord<string, string>

Send

Lettermint accepts multiple recipients, CC, BCC, reply-to, custom headers, metadata, and attachments. Attachments are base64-encoded automatically.

Idempotent sends

Pass an idempotencyKey and the adapter forwards it as Lettermint’s Idempotency-Key header, so a retried send with the same key replays the original result instead of sending twice.

Routes

Lettermint routes separate transactional and broadcast streams. Pass a route to target a specific one; omit it to use the project’s default route.

Verify from the CLI

Drop --dry-run to send for real. Route resolution only happens on Lettermint’s end, so this doubles as your route check: a live send with LETTERMINT_ROUTE set proves that slug exists, and one without it proves your project’s default route works.

Last updated on