Adapters
Configure one of 22 provider API adapters or the built-in SMTP transport, 23 adapters total.
A strong default for developer-first transactional email.
Send through Microsoft 365 and Azure AD with Microsoft Graph.
Great for focused transactional email and deliverability.
Best when your product already runs on Twilio SendGrid.
A good fit for AWS teams sending at high volume.
Use with an existing Mailgun setup or sending domain.
A simple API with a friendly dashboard for growing teams.
Use transactional email alongside your Brevo marketing stack.
Best for products already using Mailchimp Transactional.
Use when SparkPost already powers your email delivery.
Useful when testing and production email live in Mailtrap.
Send directly from apps running on Cloudflare Workers.
A natural fit for apps hosted in the Scaleway ecosystem.
Use transactional email alongside Zoho and ZeptoMail.
A simple transactional email API for smaller products.
Send product and lifecycle email through your Loops account.
An open-source-friendly option for product email.
Connect any existing SMTP server or self-hosted mail system.
Compare support
| Requirement | Check first |
|---|---|
| CC, BCC, reply-to, attachments, tags, or metadata | Field support |
| Repeated headers, scheduled delivery, native idempotency, or personalized fanout | Delivery capabilities |
| Existing SMTP service | SMTP |
Add more than one provider
import { createEmailClient } from "@opencoredev/email-sdk";
import { resend } from "@opencoredev/email-sdk/resend";
import { smtp } from "@opencoredev/email-sdk/smtp";
export const email = createEmailClient({
adapters: [
resend({ apiKey: process.env.RESEND_API_KEY! }),
smtp({
name: "backup",
host: process.env.SMTP_HOST!,
auth: {
user: process.env.SMTP_USER!,
pass: process.env.SMTP_PASS!,
},
}),
],
fallback: { adapters: ["backup"] },
});
Email SDK checks every fallback before sending. If your backup cannot handle part of the message, you get an error instead of a half-broken email.
Check your setup without sending
npx email-sdk adapters
npx email-sdk doctor --adapter resend
doctor checks your credentials and required settings. send --dry-run checks the whole message without sending it.