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

Adapter model

How Email SDK adapters, routing names, and escape hatches work.

An adapter is an Email SDK module that knows how to send through one service or transport.

Routing names

Each adapter registers a routing name. Email SDK uses that name for defaults, fallbacks, and per-send overrides.

Adapter Routing name
Resend resend
SMTP smtp
Postmark postmark
SendGrid sendgrid
Cloudflare cloudflare
AWS SES ses
Mailgun mailgun
MailerSend mailersend
Brevo brevo
Mailchimp Transactional mailchimp
SparkPost sparkpost
Loops loops
Plunk plunk
Mailtrap mailtrap
Scaleway scaleway
ZeptoMail zeptomail
MailPace mailpace

Send with one adapter

Bind one adapter

Use adapter escape hatches

Every adapter can expose raw. Keep provider-specific code close to the adapter and keep normal application code on the shared send path.

The older provider, defaultProvider, email.provider(), and email.withProvider() names still work as aliases.

Last updated on