---
title: Adapters
description: Configure one of 24 provider API adapters or the built-in SMTP transport, 25 adapters total.
---



The live version of this content is at https://email-sdk.dev/docs/adapters.



## Compare support

| Requirement                                                                      | Check first                                                      |
| -------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| Monthly cost from 1K to 1M emails                                                | [Pricing comparison](/v2.0.0/docs/adapters/pricing)              |
| CC, BCC, reply-to, attachments, tags, or metadata                                | [Field support](/v2.0.0/docs/adapters/field-support)             |
| Repeated headers, scheduled delivery, native idempotency, or personalized fanout | [Delivery capabilities](/v2.0.0/docs/adapters/capability-groups) |
| How adapters are tested                                                          | [Verification](/v2.0.0/docs/adapters/verification)               |
| Existing SMTP service                                                            | [SMTP](/v2.0.0/docs/adapters/smtp)                               |

## Add more than one provider

```ts title="src/email.ts"
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

```bash
npx --package @opencoredev/email-sdk email-sdk adapters
npx --package @opencoredev/email-sdk email-sdk doctor --adapter resend
```

`doctor` checks your credentials and required settings; add [`--live`](/v2.0.0/docs/reference/cli/doctor) to authenticate with the provider without sending. `send --dry-run` checks the whole message without sending it.
