Migration
Move providers without rewriting your mailer.
Start with the SMTP drop-in if the application already speaks SMTP. Map the API when you need idempotency, structured events or batch sends. Either path keeps the domain authentication and the delivery evidence.
Start here
SMTP drop-in
Keep the mailer. Change the host, username and password, then compare acceptance and delivery before cutover.
Rails · Laravel · Django · WordPress · Nodemailer
Open guide →Provider guide
From SendGrid
SMTP env-var swap, v3 API field mapping, Event Webhook translation and a dual-run checklist.
SMTP or API
Open guide →Provider guide
From Amazon SES
Replace SES SMTP credentials, map SendEmail fields, and replace the SNS fan-out with signed webhooks.
SMTP or API
Open guide →Provider guide
From Resend
Swap SMTP credentials, map the API and tags, translate lifecycle events and compare both providers.
SMTP or API
Open guide →Provider guide
From Postmark
Move the SMTP token, map the API, keep message streams separate and translate webhook events.
SMTP or API
Open guide →Provider guide
From Mailgun
Replace the SMTP credentials, map the domain-scoped messages API and translate webhook events.
SMTP or API
Open guide →The cutover pattern
Run both until the delivery state matches.
A migration is a comparison, not a leap. Keep the old provider configured, send a controlled flow through both paths, and move volume only when the event sequence is understood.
01
Verify the domain
Publish the ownership TXT plus SPF, DKIM and DMARC. Keep the old provider active.
02
Send a controlled flow
Use a test-only key in staging, then mirror one production flow through both providers.
03
Compare the state
Check acceptance, delivered-to-MX, deferrals, bounces and webhook payloads.
04
Cut over and keep rollback
Move volume in stages. Keep the old credentials until the new path is stable.
What stays the same
The mailer, the templates and the domain.
Your code
SMTP keeps the existing mailer and MIME pipeline. The API path maps fields when you are ready.
Your domain
SPF, DKIM and DMARC still decide authentication. A subdomain keeps a dual-run clean.
Your evidence
Accepted, delivered-to-MX, deferred, bounced and complained stay separate states.
CLI
Generate the migration plan.
The migration CLI reads the SMTP settings from .env.local, detects the provider, and prints the new settings, API mapping, webhook mapping and cutover checklist. With --write it writes a separate snippet and never edits the original env file.
npx github:Transmitly-io/transmitly-migrate sendgrid
npx github:Transmitly-io/transmitly-migrate --env .env.local
npx github:Transmitly-io/transmitly-migrate resend --write