Email SDK
Adapters

MailerSend

Configure the MailerSend Email API adapter.

MailerSend logo
MailerSend
@opencoredev/email-sdk/mailersend
OfficialPayload-testedLive account required
Open website
import { createEmailClient } from "@opencoredev/email-sdk";
import { mailersend } from "@opencoredev/email-sdk/mailersend";

const email = createEmailClient({
  adapters: [mailersend({ apiKey: process.env.MAILERSEND_API_KEY! })],
});

Options

OptionTypeRequiredNotes
apiKeystringYesMailerSend API token.
baseUrlstringNoDefaults to https://api.mailersend.com.
fetchtypeof fetchNoUseful for tests or custom runtimes.

See field support for supported message fields.

MailerSend custom headers map to headers. MailerSend documents custom headers as available on Professional and Enterprise accounts, so lower-plan accounts may need to omit headers.

On this page