Email SDK
Adapters

Adapters

Supported email service adapters and transports.

Email SDK ships with fifteen adapters. Import only the adapter you use.

Every adapter is stable in the same sense: it maps the fields it supports and throws a validation error for fields the provider API cannot represent. Use the SDK field support guide before choosing fallback routes.

Import pattern

import { createEmailClient } from "email-sdk";
import { resend } from "email-sdk/resend";
import { smtp } from "email-sdk/smtp";

const email = createEmailClient({
  adapters: [
    resend({ apiKey: process.env.RESEND_API_KEY! }),
    smtp({
      host: process.env.SMTP_HOST!,
      auth: {
        user: process.env.SMTP_USER!,
        pass: process.env.SMTP_PASS!,
      },
    }),
  ],
  fallback: ["smtp"],
});

Adapter groups

GroupAdapters
Popular APIsResend, Postmark, SendGrid, Mailgun, MailerSend, Brevo, Mailchimp Transactional
InfrastructureSparkPost, Mailtrap, Scaleway, ZeptoMail, MailPace
Product-ledLoops, Plunk
TransportBuilt-in SMTP

On this page