Email SDK
Adapters

MailerSend

Configure the MailerSend Email API adapter.

MailerSend logo
MailerSend
email-sdk/mailersend
import { createEmailClient } from "email-sdk";
import { mailersend } from "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.

On this page