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

Mailtrap

Send through the Mailtrap Email Sending API with full field support and provider-side message inspection.

Capabilities

Repeated headers Idempotency Scheduling Personalized
No none No expanded

These values come from the adapter’s exported capabilities declaration. The field support matrix covers normalized message fields.

The Mailtrap adapter calls the Mailtrap Email Sending API with plain fetch. It supports every common transactional field, and Mailtrap’s inspection tooling makes it a natural pick for staging environments.

Mailtrap logo
Mailtrap@opencoredev/email-sdk/mailtrap
Provider docs

Configure

Create a Mailtrap API token with Email Sending permission and verify your sending domain.

PropType
apiKeystring

Mailtrap API token, sent as the Api-Token header.

Typestring
baseUrl?string

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

Typestring
Default"https://send.api.mailtrap.io"
fetch?typeof fetch

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch

Send

Mailtrap maps cc, bcc, headers, attachments, metadata, and tags, with two limits: at most one tag (its value becomes the Mailtrap category) and at most one replyTo. metadata is sent as custom_variables with values stringified (null becomes "").

Verify from the CLI

Drop --dry-run for one real smoke send, and confirm the token targets the intended Mailtrap project before pointing production at it.

Last updated on