Skip to content
You're viewing documentation for v0.6.1. It may be out of date.Go to latest
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

MailerSend

Send through the MailerSend Email API with cc/bcc, headers, tags, attachments, and a single reply-to address.

The MailerSend adapter calls the MailerSend Email API over fetch — no extra dependency. Its quirk: MailerSend accepts exactly one reply-to address, and the message id comes back in the x-message-id response header rather than the body.

MailerSend logo
MailerSend@opencoredev/email-sdk/mailersend
Provider docs

Configure

Create an API token in the MailerSend dashboard and verify the domain you plan to send from.

PropType
apiKeystring

MailerSend API token, sent as a Bearer header.

Typestring
baseUrl?string

Override the API origin, e.g. for a proxy.

Typestring
Default"https://api.mailersend.com"
fetch?typeof fetch

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch

Send

MailerSend maps cc, bcc, headers, attachments (an attachment’s contentId becomes MailerSend’s id), and tags (values only). replyTo accepts a single address — two or more throw an EmailValidationError before any request.

The response id comes from the x-message-id response header, falling back to message_id or id in the body — use it to look the send up in MailerSend’s activity log.

Verify from the CLI

Drop --dry-run for one real send — that is the only check that proves the token, domain verification, and plan limits are ready.

Last updated on