Adapters
MailerSend
Configure the MailerSend Email API adapter.
MailerSend
email-sdk/mailersendimport { createEmailClient } from "email-sdk";
import { mailersend } from "email-sdk/mailersend";
const email = createEmailClient({
adapters: [mailersend({ apiKey: process.env.MAILERSEND_API_KEY! })],
});Options
| Option | Type | Required | Notes |
|---|---|---|---|
apiKey | string | Yes | MailerSend API token. |
baseUrl | string | No | Defaults to https://api.mailersend.com. |
fetch | typeof fetch | No | Useful for tests or custom runtimes. |
See field support for supported message fields.