Migration · SMTP drop-in
Keep your mail code. Swap two SMTP settings.
Move from SendGrid, SES, Postmark or an in-house relay by changing SMTP settings, not application code. Same interface, durable acceptance and per-recipient state.
Most applications already speak SMTP. Transmitly accepts authenticated SMTP submission at mail.transmitly.io, so a migration can start as an environment-variable change instead of an SDK rewrite. The server returns 250 only after the same message, delivery and outbox transaction used by the API commits.
What changes
Point the existing mailer at Transmitly, keep the same port and TLS mode, and replace the username and password. If the application reads SMTP settings from environment variables, the first test is a branch with four changed values.
- Port 587 uses STARTTLS and requires AUTH before MAIL FROM.
- Port 465 uses implicit TLS.
- The username can be apikey or the key prefix shown in the dashboard. The password is the full API key.
- The key needs the send or admin scope.
# before (example: SendGrid)
SMTP_HOST=smtp.sendgrid.net
SMTP_PORT=587
SMTP_USER=apikey
SMTP_PASSWORD=SG....
# after
SMTP_HOST=mail.transmitly.io
SMTP_PORT=587
SMTP_USER=apikey
SMTP_PASSWORD=txk_...What does not change
Your mailer, templates, From and Reply-To addresses, MIME structure and attachment handling stay the same. Transmitly parses standard MIME into the same message model as the API: multipart alternatives, quoted-printable and base64 encodings, charsets, inline CID images and attachments.
The domain still needs to be verified, with SPF, DKIM and DMARC published. Moving the SMTP handoff does not move authentication: receivers still evaluate the sending domain.
- Up to 50 MiB per message.
- Up to 50 recipients, or the plan's per-message cap.
- Up to 20 attachments, 40 MiB total; HTML body up to 1 MiB.
- Optional X-Transmitly-Stream and X-Transmitly-Topic headers map to the API fields.
Framework settings
The exact syntax depends on the mailer. These are the settings for common stacks; the values are the same in each case.
- WordPress: in WP Mail SMTP, choose Other SMTP, set the host and port, enable authentication, use apikey as the username and the Transmitly key as the password.
- Use port 465 with implicit TLS if the mailer does not negotiate STARTTLS correctly on 587.
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "mail.transmitly.io",
port: 587,
user_name: "apikey",
password: ENV["TRANSMITLY_KEY"],
authentication: :plain,
enable_starttls_auto: true
}MAIL_MAILER=smtp
MAIL_HOST=mail.transmitly.io
MAIL_PORT=587
MAIL_USERNAME=apikey
MAIL_PASSWORD=txk_...
MAIL_ENCRYPTION=tls
[email protected]EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "mail.transmitly.io"
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = "apikey"
EMAIL_HOST_PASSWORD = os.environ["TRANSMITLY_KEY"]const transporter = nodemailer.createTransport({
host: "mail.transmitly.io",
port: 587,
secure: false,
auth: { user: "apikey", pass: process.env.TRANSMITLY_KEY },
});Test before you cut over
Create a test-only API key to force test mode for the staging mailer. The synthetic @transmitly.test addresses behave the same way as the API: delivered, deferred, bounced, complained, suppressed, opened and clicked outcomes are generated without touching a real mailbox.
For production, run a small flow in parallel. Keep the old provider configured, send the same message through both paths to a controlled address, and compare acceptance, deferrals, bounces and webhook payloads. A subdomain is useful if the old and new providers need different authentication records during the comparison.
- Keep the old environment variables until the new path has passed the comparison.
- Check that the From header and MAIL FROM use the same verified domain.
- Confirm the webhook signing secret before enabling production consumers.
- Roll back by restoring the old SMTP values; no application code or data migration is involved.
When to move to the API
SMTP is the lowest-friction migration, but it has one important limit: there is no idempotency key. A client that retries after a timeout can create a duplicate. The API accepts an Idempotency-Key, returns a message ID with per-recipient state and supports batch sends and structured templates.
Start with SMTP if the goal is to remove the provider dependency quickly. Move the highest-value flows to the API first, then retire the SMTP path when the mailer can make an HTTPS request.
Questions
Common questions
+Is Transmitly an open SMTP relay?
No. SMTP submission is authenticated and scoped to a workspace. Every sender must be on a verified domain in that workspace, and the MAIL FROM and From header must match the same verified domain.
+Can I use SMTP with a test-only key?
Yes. A test-only key forces test mode, and the synthetic @transmitly.test addresses produce delivered, deferred, bounced, complained, suppressed, opened and clicked outcomes without SMTP delivery.
+Does SMTP support idempotency?
No. SMTP has no idempotency key. A Message-ID is preserved when present, but a client that retries after a timeout can create a duplicate. Use the API with Idempotency-Key when exactly-once acceptance matters.
+Do I need to change DNS?
Yes. Verify the sending domain and publish SPF, DKIM and DMARC. The SMTP handoff changes which service accepts the message; authentication is still evaluated against your domain.
+What are the SMTP limits?
Up to 50 MiB per message, 50 recipients (or the plan cap), 20 attachments and 40 MiB of attachments. The HTML body is capped at 1 MiB. Workspace quotas and per-tenant rate limits still apply.
Related
See what the remote MX actually said.
Start free, verify a domain and send a test. Acceptance and delivery evidence stay separate.