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

MailerSend

Configure the MailerSend Email API adapter.

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

MailerSend supports transactional sends with CC, BCC, one reply-to address, custom headers, tag values, and attachments.

Before live sends

Create a MailerSend API token, verify the sending domain, and confirm the account plan supports any custom headers you send. MailerSend documents custom headers as Professional and Enterprise features, so lower-plan accounts should omit headers.

Configure

Send

MailerSend supports one replyTo address. The adapter rejects multiple reply-to addresses before it calls the API.

Send with an attachment

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.

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.

Response

The adapter uses the x-message-id response header when available, then falls back to body message_id or id.

CLI smoke test

Last updated on