Skip to content
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.

Capabilities

Repeated headers Idempotency Scheduling Personalized
No none Yes expanded

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

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 comes 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.

Frequently asked questions

Does Email SDK support Mailchimp Transactional?

Yes. Email SDK ships a Mailchimp Transactional adapter imported from @opencoredev/email-sdk/mailchimp. You keep your Mailchimp Transactional account and credentials; the SDK adds message validation, typed errors, and no-network test adapters around the same send() call used for every other provider.

Which message fields does the Mailchimp Transactional adapter support?

Mailchimp Transactional supports CC recipients, BCC recipients, Custom headers, Attachments, Tags, Metadata, and Scheduled sending (sendAt). It does not support Reply-To address; Email SDK rejects a message that uses those fields before any request is made.

Can Mailchimp Transactional schedule email for later with Email SDK?

Yes. Set sendAt on the message and the Mailchimp Transactional adapter passes the scheduled time to the provider.

Does the Mailchimp Transactional adapter support idempotent sends?

No. Mailchimp Transactional has no provider-side idempotency, so a retried send can be delivered twice. A send with idempotencyKey on a route that includes Mailchimp Transactional fails with EmailValidationError unless you pass idempotency: “best-effort”. Deduplicate in your own queue before retrying.

Last updated on