When you search for SendGrid alternatives, you are usually deciding between three kinds of replacement: another hosted email API and SMTP relay, a cloud provider's native service, or running your own mail transfer agent. For most application teams the practical answer is another hosted provider, and the comparison comes down to deliverability controls, API and webhook design, suppression handling, pricing model and support quality.
The migration is the harder part. Application code, SMTP credentials, webhooks, templates, DNS records and suppression data all point at the old provider. This guide gives you a comparison framework and a staged migration plan that lets you move traffic gradually and roll back if something goes wrong. For a shorter checklist that covers several vendors, see the provider migration checklist.
Decide what kind of alternative you need
| Option | Best for | Trade-off |
|---|---|---|
| Another hosted email API and SMTP relay | Most application teams that want to keep the same integration style | You still depend on a vendor, so evaluate the vendor carefully |
| Cloud provider email service | Teams already deep in one cloud and comfortable with its tooling | Often more setup and fewer product conveniences. See Amazon SES trade-offs |
| Your own MTA | Very high volume or special routing and data requirements | You own IP reputation, queues, monitoring and abuse handling. See build versus buy |
| Split providers | Separating transactional from marketing, or adding redundancy | More integration to maintain |
What to compare
- Deliverability controls. Custom domain authentication (SPF, DKIM, DMARC alignment), dedicated IP options, IP pools, reputation reporting, and clear abuse policies.
- SMTP and API parity. Both interfaces available, TLS on port 587 with STARTTLS and 465 with implicit TLS, API key scoping, and idempotency or deduplication options for retries.
- Webhooks and logs. Events for delivered, deferred, bounced, complained and unsubscribed, signed payloads, retry behaviour, and searchable message logs with useful retention. See webhook events and signatures.
- Suppression handling. Automatic suppression of hard bounces and complaints, import and export of suppression lists, and per-stream or per-group unsubscribe handling.
- Templates. Whether templates are stored by the provider or rendered by your code, and what template language is used.
- Limits and pricing. Rate limits, daily caps, burst behaviour, and how price scales. These change, so read the current pricing page and terms for each vendor.
- Regions and data handling. Where data is processed, retention periods and data processing terms. See provider security review questions.
- Support. Channels, response expectations and how abuse or blocklist issues are handled.
For a structured scoring approach, use the vendor evaluation scorecard.
Inventory everything that talks to SendGrid
Search your repositories, configuration management, secrets store and infrastructure code before you plan the cutover. Missing one integration is the most common cause of a failed migration.
- SMTP clients. Look for the host
smtp.sendgrid.netand the fixed usernameapikeyused with an API key as the password. - API callers. Look for requests to the v3 mail send endpoint and any SDK imports.
- Webhooks. Inbound endpoints that receive event notifications and the code that verifies and processes them.
- Templates. Provider-hosted dynamic templates referenced by ID.
- Domain authentication. The CNAME records created for domain authentication and link branding.
- Suppression data. Bounces, spam reports, blocks, invalid addresses and unsubscribe groups.
- Third party tools. CMS plugins, CRMs, monitoring and alerting systems configured with SendGrid keys.
# Find usages in a codebase (run from the repository root)
grep -rIn --exclude-dir=node_modules --exclude-dir=.git \
-e 'smtp.sendgrid.net' -e 'SENDGRID' -e 'api.sendgrid.com' -e 'sendgrid' .Export suppressions and import them first
A new provider starts with no memory of who bounced, complained or unsubscribed. Export those lists from SendGrid, from the interface or its API, and import them into the new provider before sending anything. Check the current documentation for export options and formats, because they change.
email,reason,created
[email protected],hard_bounce,2023-06-02
[email protected],spam_report,2023-07-19
[email protected],unsubscribe,2023-09-11Map the categories carefully. Hard bounces, invalid addresses and spam reports should be permanent suppressions. Temporary blocks should not be imported as permanent unless you have a reason. Unsubscribes should be mapped to the correct stream so that a marketing unsubscribe does not block password reset mail, and the reverse never happens. See suppression list management.
Move the domain authentication
Add the new provider's authentication records while the old ones remain in place. DKIM selectors are unique per provider, so both can coexist. SPF is the one to watch: a record has a limit of ten DNS-querying mechanisms, and keeping two providers in one record can exceed it.
; DKIM: the new provider gives you a selector and key or CNAME targets
selector1._domainkey.example.com. CNAME selector1.dkim.provider.example.
; SPF: merge, do not duplicate. Only one SPF record per name
example.com. TXT "v=spf1 include:_spf.old-provider.example include:_spf.new-provider.example ~all"
; DMARC: keep at monitoring while you verify alignment
_dmarc.example.com. TXT "v=DMARC1; p=none; rua=mailto:[email protected]"Replace the placeholder hostnames with the values your provider documents. Send test messages and read the headers for spf=pass, dkim=pass and DMARC alignment before moving traffic. See authenticating your sending domain and DKIM CNAME delegation.
Change the application: SMTP first, API second
SMTP migration is mostly configuration. Put the host, port, username and password in environment variables so you can switch and roll back without a deploy. The new relay host would be set like this, shown with MigoSMTP's published endpoint as an example of the shape:
SMTP_HOST=smtp.migosmtp.com
SMTP_PORT=587 # STARTTLS. Use 465 for implicit TLS
SMTP_USER=your-username
SMTP_PASS=your-secret
SMTP_TLS=starttlsAPI migration needs code changes. The request shape, authentication header, field names and error codes differ between providers, so isolate the provider behind a small interface in your code: one function that accepts a normalised message and returns a message ID. Then you change one adapter, not every call site. Handle retries with an idempotency strategy so a timeout does not send twice. See idempotency and retry patterns.
Webhooks need the same treatment. Event names and payload formats differ. Write a translator that converts the new provider's events into the internal shape you already use, verify signatures, and make handlers idempotent. See webhook handler reliability.
Shift traffic gradually
- Shadow test. Send internal and test messages through the new provider while production stays on the old one.
- Move low risk traffic. Start with a single low volume message type, such as notifications.
- Ramp by percentage. Route 5, 25, 50 then 100 percent, using a feature flag or weighted configuration. For new IPs follow a warm up schedule.
- Compare metrics. Delivery rate, bounce rate, complaint rate, latency and time to inbox between the two paths.
- Keep rollback ready. Retain the old credentials and DNS records until you have run at 100 percent for several weeks.
- Decommission. Revoke old API keys, remove unused DNS records and clean the SPF include.
Handling templates, limits and rollback
If you use provider-hosted templates, decide early whether to recreate them at the new provider or move rendering into your own code. Rendering in your application removes a class of lock-in, because the provider then receives finished HTML and text and the template language no longer matters. Whichever route you choose, keep a plain text part, test with real data, and check the result in the major mailbox providers.
Also compare rate limits and concurrency. A provider that accepts your average volume may throttle a sudden burst, such as a flash sale or a nightly batch. Run a load test in a staging environment and make sure your queue retries with backoff instead of failing hard. See rate limits, retries and backoff.
Finally, write the rollback plan down before you start: which flag flips traffic back, who can do it, and which metric triggers it. A rollback you have never rehearsed is a guess.
Troubleshooting after cutover
| Symptom | Likely cause | Fix |
|---|---|---|
| 535 authentication failed | Wrong username format or key type | Use the exact credentials the new provider documents. See 535 errors |
| Messages accepted but not delivered | Missing DKIM or SPF for the new provider | Check headers for authentication results |
| Deliverability dropped | New IP reputation or sudden volume | Slow the ramp, send to engaged recipients first |
| Events not arriving | Webhook URL not allowlisted or signature check failing | Check logs, firewall and shared secret |
| Duplicate emails | Retry without idempotency during the transition | Add deduplication keys |
| Template variables missing | Different template syntax | Test every template with real data |
A migration is finished when production traffic is fully on the new provider, suppressions are in sync, webhooks are processed correctly and the old integration is removed. Next steps: pick two or three providers, run a pilot on one message type, and agree your success metrics before you move anything.
Test an alternative with your own traffic Use an SMTP relay or REST email API with webhooks for delivery, bounce and complaint events.
References and further reading
Frequently asked questions
What should I look for in a SendGrid alternative?
Look at deliverability controls, SMTP and API parity, webhook design, suppression handling, regional options, pricing model and support quality.
Can I keep my SMTP code when I switch?
Usually yes, because only the host, port and credentials change. API integrations need code changes since request formats differ.
How do I move suppressions from SendGrid?
Export bounces, spam reports, invalid addresses and unsubscribes, then import them into the new provider before sending any mail.
Do I need to change DNS when switching?
Yes. Add the new provider DKIM and SPF records, keep DMARC aligned and remove old records only after the migration is complete.
How do I reduce risk during the cutover?
Shift traffic gradually with a feature flag, compare delivery metrics, and keep the old credentials and DNS for rollback.