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.

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.

See the first-send acceptance benchmark →

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.

View the CLI on GitHub →
terminal
npx github:Transmitly-io/transmitly-migrate sendgrid
npx github:Transmitly-io/transmitly-migrate --env .env.local
npx github:Transmitly-io/transmitly-migrate resend --write