Migration guide / Transactional email
Transactional email without a Mailchimp marketing plan: map messages/send, merge vars, webhooks and the rejection list.
Mailchimp Transactional, first called Mandrill, is a paid add-on to a Standard or Premium Mailchimp marketing plan, bought in blocks of credits. SMTPfast has its own plans, free included, with no marketing plan required. The API moves from a key in the JSON body to a Bearer key, and from to[] objects with a type to plain to, cc and bcc fields.
Mailchimp Transactional (Mandrill) details checked against its own docs on 2026-12-02.
Before: Mailchimp Transactional (Mandrill)
curl -X POST https://mandrillapp.com/api/1.4/messages/send \
-H "Content-Type: application/json" \
-d '{
"key": "'"$MANDRILL_API_KEY"'",
"message": {
"from_email": "[email protected]",
"from_name": "Acme",
"to": [{ "email": "[email protected]", "type": "to" }],
"subject": "Your receipt",
"html": "<p>Thanks for your order.</p>",
"tags": ["receipt"],
"metadata": { "order_id": "1041" }
}
}'After: SMTPfast
curl -X POST https://smtpfa.st/api/v1/emails \
-H "Authorization: Bearer $SMTPFAST_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"from": "Acme <[email protected]>",
"to": [
"[email protected]"
],
"subject": "Your receipt",
"html": "<p>Thanks for your order.</p>",
"tags": [
{
"name": "tag",
"value": "receipt"
},
{
"name": "order_id",
"value": "1041"
}
],
"category": "transactional"
}'import { SMTPfast } from "@smtpfast/sdk";
const smtpfast = new SMTPfast(); // reads SMTPFAST_API_KEY
const { id } = await smtpfast.emails.send({
from: "Acme <[email protected]>",
to: ["[email protected]"],
subject: "Your receipt",
html: "<p>Thanks for your order.</p>",
tags: [
{
name: "tag",
value: "receipt",
},
{
name: "order_id",
value: "1041",
},
],
category: "transactional",
});| Mailchimp Transactional (Mandrill) | SMTPfast |
|---|---|
| POST /api/1.4/messages/send, key in the body | POST /v1/emails, Authorization: Bearer KEY |
| from_email, from_name | from: "Name <email>" |
| to [{ email, name, type: to | cc | bcc }] | to, cc, bcc |
| headers { "Reply-To": ... } | reply_to |
| attachments, images [{ type, name, content }] | attachments [{ content_type, filename, content, content_id }]An image with a content_id is sent inline. |
| tags, metadata | tags [{ name, value }] (up to 50) |
| track_opens, track_clicks | track_opens, track_clicks |
| send_at (UTC, up to one year) | scheduled_at (ISO 8601, up to 30 days) |
| merge_vars, global_merge_vars | One email per recipient, or a template with variablesSMTPfast does not merge per recipient inside one request. Use POST /v1/emails/batch for up to 100. |
| Mailchimp Transactional (Mandrill) | SMTPfast |
|---|---|
| Host smtp.mandrillapp.com | Host smtp.smtpfa.st |
| Ports 25, 587, 2525 (STARTTLS), 465 (SSL) | Ports 587 and 2525, STARTTLSThere is no implicit TLS port (465). Use 587, or 2525 where 587 is blocked. |
| Username any (your contact email) | Username smtpfast |
| Password API key | An SMTPfast API key with the email:send scope |
| Mailchimp Transactional (Mandrill) | SMTPfast |
|---|---|
| send | email.sent |
| delivered | email.delivered |
| deferral | email.delivery_delayedNot the same event: it fires when SMTPfast retries handing the email to its provider, not for delays at the receiving server, which SMTPfast does not report. |
| hard_bounce, soft_bounce | email.bouncedbounce_type tells Permanent from Transient. |
| spam | email.complained |
| open, click | email.opened, email.clicked |
| unsub | email.unsubscribed |
| reject | email.suppressed or email.failed |
| mandrill_events (form field, up to 1,000), X-Mandrill-Signature (HMAC-SHA1) | One JSON event per request, X-SMTPfast-Signature (HMAC-SHA256) |
| Mailchimp Transactional (Mandrill) | SMTPfast |
|---|---|
| messages/send-template, template_name, template_content (mc:edit) | template: { id, variables }No editable regions. Variables fill {{{NAME}}} placeholders. |
| *|FNAME|* merge tags or Handlebars | {{{FIRST_NAME}}}Plain variables only. |
| Rejection denylist (hard-bounce, spam, unsub, custom) | SuppressionsHard bounces and spam: scope all. Unsubscribes: scope marketing. |
Add the domain in the dashboard (or with POST /v1/domains) and publish the records it shows: three DKIM CNAMEs, an MX and an SPF TXT record for the bounce subdomain (MAIL FROM), and include:amazonses.com in the SPF record of the domain. A domain has one SPF record, so add the include to the one you have. The DKIM and bounce records have their own names, so they sit next to your current provider's records and both can send while you switch. Keep your DMARC record if you have one. On Cloudflare DNS, SMTPfast can add the records for you.
Create a key with the email:send scope for the app that sends. Give webhook and contact jobs their own keys with only the scopes they need (webhook:write, contact:write).
Move the key to the Authorization header, join from_name and from_email, split the to array by type into to, cc and bcc, and put tags and metadata into tags. A message with merge_vars for many recipients becomes one email per recipient, sent as a batch of up to 100. Add category: "transactional".
Call exports/rejects in Mandrill: it returns a zip with rejects.csv. Add hard-bounce and spam rows with POST /v1/suppressions/batch/add, 100 per call, and unsub rows with POST /v1/suppressions and scope marketing. Skip soft-bounce rows that have expired.
Copy the HTML of each template you still use into an SMTPfast template. Replace *|FNAME|* with {{{FIRST_NAME}}} and each mc:edit region that holds plain text with a variable. Variable values are escaped, so a region that holds HTML means rendering the email in your code and sending html.
Create a webhook for the email.* events that replace your Mandrill events and check the X-SMTPfast-Signature header: a hex HMAC-SHA256 of the raw body with the webhook's signing secret. Every event body is { type, timestamp, data }. Failed deliveries are retried 4 more times over about 36 minutes, and you can replay any of them from the delivery log.
import crypto from "node:crypto";
// rawBody: the request body exactly as received, before JSON.parse
function isFromSmtpfast(rawBody: string, signature: string, secret: string) {
const expected = crypto.createHmac("sha256", secret).update(rawBody).digest();
const given = Buffer.from(signature, "hex");
return given.length === expected.length && crypto.timingSafeEqual(given, expected);
}Send to an address you own and check the email in Logs, then in the received message headers (DKIM and SPF pass, aligned with your From domain). Move one kind of mail first, such as password resets, and watch bounces and complaints for a few days before you move the rest. A new account has warm-up limits, so a large list should not move in one day.
Check these before you move. If one is a blocker, stay where you are.
No. SMTPfast plans are on their own, free included. If you still send newsletters from Mailchimp, you can keep that and move only the transactional mail.
Yes. Mailchimp says Mandrill was the original name and the product was renamed Mailchimp Transactional. The API still lives at mandrillapp.com.
Verify a domain, send a test and check it in Logs before you move any traffic. Webhooks and inbound mail need a paid plan.