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

Mailchimp Transactional

Send through Mailchimp Transactional (Mandrill) with typed recipients, tags, and metadata, but no replyTo field.

The Mailchimp adapter calls the Mailchimp Transactional API, the API formerly known as Mandrill, with plain fetch. Unusually, the API key travels in the request body rather than a header, and recipients are a single typed list (to/cc/bcc entries) instead of separate arrays.

Mailchimp Transactional logo
Mailchimp Transactional@opencoredev/email-sdk/mailchimp
Provider docs

Configure

Create a Transactional API key in the Mandrill dashboard (Settings → SMTP & API Info) and verify your sending domain.

PropType
apiKeystring

Mailchimp Transactional (Mandrill) API key, sent in the request body.

Typestring
baseUrl?string

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

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

Custom fetch implementation for tests or special runtimes.

Typetypeof fetch

Send

Mailchimp maps cc, bcc, headers, attachments, tags (values only), and metadata. sendAt maps to Mailchimp’s send_at (a UTC timestamp), and Mailchimp only schedules email for accounts with a positive balance.

Mandrill responds with one result per recipient; the normalized id and messageId come from the first result’s _id. Each result also carries a per-recipient status (sent, queued, rejected). If a send succeeds but mail does not arrive, check result.raw during smoke tests, because a rejected status still counts as a successful API call.

Verify from the CLI

Drop --dry-run for one real send and check the per-recipient status in the output; Mandrill can accept the request and still reject the recipient.

Last updated on