Skip to content
Email SDK
Esc
↑↓navigate↵open⌘Jpreview
On this page

Mailgun vs AWS SES

Mailgun vs Amazon SES: lowest unit price against an included operations layer. A short verdict, message field support, and code for both via one SDK.

Short answer: Pick Amazon SES for the lowest unit price if you can run deliverability yourself. Pick Mailgun if you want inbound routing, EU region hosting, searchable logs and send-time optimization included. Mailgun supports per-message metadata and scheduled sending and SES supports neither, so Email SDK rejects a Mailgun-to-SES fallback for messages that use them.

Mailgun and Amazon SES both court high-volume senders, but with different bargains. SES offers the lowest unit price in the industry and rock-solid infrastructure, in exchange for doing your own deliverability work: warming IPs, processing bounces via SNS, and living without much of a UI. Mailgun costs more per message but includes the operational layer — send-time optimization, inbound routing and parsing, EU region hosting, searchable logs, and human support tiers. The unified message shape exposes a real functional gap too: Mailgun supports per-message metadata and native scheduled delivery while SES supports neither, so a Mailgun-to-SES fallback drops both fields and the SDK will fail fast rather than lose them silently. Teams often start on Mailgun and graduate to SES when volume justifies the operational investment.

Message field support

Field support as encoded in Email SDK’s own adapter capability matrix, the same data the SDK uses to reject sends that would silently drop fields.

Message field Mailgun AWS SES
CC recipients ✓ ✓
BCC recipients ✓ ✓
Reply-To address ✓ ✓
Custom headers ✓ ✓
Attachments ✓ ✓
Tags ✓ ✓
Metadata ✓ —
Scheduled sending (sendAt) ✓ —

Fallback compatibility

Failing over from Mailgun to AWS SES loses: Metadata, Scheduled sending (sendAt). Email SDK rejects the fallback send for messages that use these fields instead of dropping them silently.

Same code, either provider

With Email SDK the send call is identical for both providers. Only the adapter import changes:

Or run both, with automatic fallback:

FAQ

Should I use Mailgun or AWS SES?

Pick Amazon SES for the lowest unit price if you can run deliverability yourself. Pick Mailgun if you want inbound routing, EU region hosting, searchable logs and send-time optimization included. Mailgun supports per-message metadata and scheduled sending and SES supports neither, so Email SDK rejects a Mailgun-to-SES fallback for messages that use them.

Can I switch from Mailgun to AWS SES without rewriting my email code?

Yes. With Email SDK both providers share one typed send() call and one message shape, so switching from Mailgun to AWS SES is a one-line adapter change plus an API key. The SDK fails fast if a message uses a field AWS SES does not support, so nothing is silently dropped.

Which message fields does Mailgun support that AWS SES doesn’t?

Mailgun supports Metadata, Scheduled sending (sendAt) in the unified message shape, which AWS SES does not.

Can I use AWS SES as a fallback for Mailgun?

Partially. Email SDK checks field support before every send: a fallback is rejected from Mailgun to AWS SES for messages using Metadata, Scheduled sending (sendAt). Messages that avoid those pass the field checks. A failed send still falls back only when the SDK knows the first provider didn’t send it, unless you set onUnknownDelivery: “continue”. Adapter limits also apply. Mailgun: Native personalized delivery caps one request at 1,000 recipients. Mailgun: Tag names are discarded; tag values are sent as o:tag values. AWS SES: Accepts at most 15 headers per message.

Adapter docs

Setup guides: Mailgun adapter and AWS SES adapter. Sending from your own domain? Verify SPF, DKIM, and DMARC with the free email DNS checker.

Calling the API directly? Read the Mailgun API guide for Node.js and TypeScript.

Moving off Mailgun? Read the Mailgun alternatives guide.

Estimating the bill? Read the Mailgun pricing guide.

Estimating the bill? Read the Amazon SES pricing guide.

Last updated on