Migration · Resend
Move from Resend without rewriting the send path.
A practical Resend to Transmitly migration: swap SMTP credentials, map the API and webhook events, verify the domain and run both providers before cutover.
If the application already sends over SMTP, the migration is a credential swap. If it uses the Resend API, map the message fields and webhook events. Keep Resend active during the comparison and move volume when the acceptance and delivery states line up.
Fastest path: SMTP
Resend and Transmitly both accept authenticated SMTP. The host, username and password change; the port and TLS mode do not.
- Port 587 uses STARTTLS; port 465 uses implicit TLS.
- The From header and MAIL FROM must use the same verified domain.
- Standard MIME, inline CID images and attachments work without a mailer change.
- Resend's SMTP idempotency header does not exist on the Transmitly SMTP path; use the API when exactly-once acceptance matters.
# before
SMTP_HOST=smtp.resend.com
SMTP_PORT=587
SMTP_USER=resend
SMTP_PASSWORD=re_...
# after
SMTP_HOST=mail.transmitly.io
SMTP_PORT=587
SMTP_USER=apikey
SMTP_PASSWORD=txk_...If you use the API
The Resend send response is a message ID. Transmitly returns 202 Accepted with the same kind of ID after the message, deliveries and outbox intent commit. The request fields map directly except for tags.
- from, to, subject, html and text map directly.
- Resend's tags array of { name, value } objects becomes a Transmitly tags object.
- Attachments map to the Transmitly attachment array; verify the content/path field names before moving binary uploads.
- Resend's scheduled send field maps to Transmitly's scheduled_at where the plan supports scheduling.
- The API uses an Idempotency-Key header; the SDK can generate one for you.
POST /v1/emails
{
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"html": "<p>Thanks for the payment.</p>",
"stream": "transactional",
"tags": { "flow": "receipt" }
}Webhook mapping
Resend emits email lifecycle events. Transmitly keeps acceptance, delivered-to-MX, deferrals, bounces and complaints as separate states.
- email.sent → email.accepted
- email.delivered → email.delivered_to_mx
- email.delivery_delayed → email.deferred
- email.bounced → email.bounced
- email.complained → email.complained
- email.opened → email.opened
- email.clicked → email.clicked
- email.failed → treat as a hard failure and check whether it should also suppress
- email.suppressed → email.suppressed
- email.received is inbound; map it to a Transmitly inbound route or inbox event.
Domain authentication and dual-run
Verify the domain in Transmitly and publish the ownership TXT plus SPF, DKIM and DMARC records. A subdomain keeps the old and new authentication records separate while both providers are active.
Send a controlled production flow through both paths. Compare acceptance, delivered-to-MX, deferrals, hard bounces and complaints. Keep the Resend credentials until the comparison is complete.
- Use a test-only key for staging and the synthetic @transmitly.test addresses.
- Confirm the new webhook signature before enabling production consumers.
- Roll back by restoring the old host and key; no application data migration is involved.
What changes after cutover
The API still returns an acceptance receipt; the difference is that the receipt and the later delivery state are part of one operational model. Per-recipient deliveries, the remote MX response, deferral retries and webhook replay are visible without a separate event pipeline.
Questions
Common questions
+Can I keep Resend active during the migration?
Yes. Keep the old credentials configured, send a controlled flow through both providers, and compare acceptance, delivered-to-MX, deferrals and bounces before moving volume.
+Does the Resend SMTP idempotency header work on Transmitly?
No. SMTP has no idempotency key on the Transmitly path. Use the API with an Idempotency-Key when exactly-once acceptance matters.
+Do Resend templates migrate automatically?
Not automatically. HTML and text content moves; template variables and any provider-specific templating need to be converted.
+Do I need to change DNS?
Yes. Verify the sending domain in Transmitly and publish SPF, DKIM and DMARC. A subdomain keeps the old and new records separate during a dual-run.
Related
See what the remote MX actually said.
Start free, verify a domain and send a test. Acceptance and delivery evidence stay separate.