Twilio SendGrid vs Mailgun: which fits your needs?

Both are hosted email APIs with SMTP, event webhooks, inbound parsing, stored templates and official SDKs. They differ most in how they handle Europe and in their plan structure.

Last updated 1 Nov 2026. How we check facts

We gathered these facts from the vendors' own pages with AI assistance, and a person has not checked them all yet. Confirm anything important with the vendor, and tell us if you spot a mistake.

The decision

Choose Twilio SendGrid if

  • You want a separate Marketing Campaigns product from the same vendor
  • You need the documented EU data residency model
  • You want DMARC monitoring through its Valimail partnership
Visit Twilio SendGrid

Consider Mailgun if

  • You want to choose a US or EU region per domain
  • You want an ongoing free plan, accepting that it has a daily cap and no custom domain
  • You want inbound routes with filters and forwarding rules
Visit Mailgun

Neither if

  • You need to self-host
  • You want usage-only billing, which we could not confirm for either

Assumptions. This compares hosted plans for an application team, using the plan pages available on the date shown. SendGrid plan volumes could not be read from its pricing page, so prices are not directly compared. Nothing here has been independently tested.

No vendor pays to appear on this page, and these links earn LaunchMic nothing. Disclosures

Trade-offs

  • SendGrid's EU data residency requires an EU subuser and a dedicated EU IP, and limits some features
  • Mailgun lists its template builder and API from the Foundation plan up
  • Messages sent to suppressed addresses still use a credit on SendGrid

Every fact, with its source

Yes
The source supports this.
Limited
Available with a condition, shown beside it.
No
The vendor says it is not available.
Not verified
We could not confirm it. This does not mean no.
Twilio SendGrid and Mailgun by capability
Twilio SendGridMailgun
Sending
HTTP APISend email through an HTTP API.
Yes

v3 Web API Mail Send endpoint sends email over HTTP.

Vendor documented, as of 1 Nov 2026
Yes

POST to /v3/{domain}/messages with US or EU base URL and basic auth.

Vendor documented, as of 1 Nov 2026
SMTPSend email through SMTP.
Yes

SMTP is available at smtp.sendgrid.net using an API key for authentication.

Vendor documented, as of 1 Nov 2026
Yes

SMTP relay available with per-domain credentials; smtp.mailgun.org (US) and smtp.eu.mailgun.org (EU) per docs overview.

Vendor documented, as of 1 Nov 2026
Official SDKsClient libraries maintained by the vendor.
Yes

Official libraries: C#, Go, Java, Node.js, PHP, Python, Ruby.

Vendor documented, as of 1 Nov 2026
Yes

Official SDKs for Go, Node.js, PHP, Java, Ruby and Python.

Vendor documented, as of 1 Nov 2026
Hosting
Vendor-run serviceThe vendor operates the service for you.
Yes

Vendor allocates and operates the sending IPs (shared groups or dedicated).

Vendor documented, as of 1 Nov 2026
Yes

Vendor-run email API and SMTP service for sending, receiving and tracking.

Vendor documented, as of 1 Nov 2026
Self-hostingYou can run the product on your own infrastructure.
Not verified
Not verified
Open sourceSource code is published under an open source licence.
Not verified
Not verified
Needs your own Amazon SES accountDelivery depends on an Amazon SES or AWS account that you own. Here, No is usually the simpler answer.
No

Vendor documents allocating its own sending IPs and shared IP groups, so delivery does not use a customer SES account.

Vendor documented, as of 1 Nov 2026
No

Docs describe Mailgun-managed dedicated IPs and IP pools, i.e. its own sending infrastructure.

Vendor documented, as of 1 Nov 2026
Events and inbound
Event webhooksDelivery, bounce or complaint events sent to a URL you choose.
Yes

Event Webhook posts email event data (delivery and engagement events) to a URL you control.

Vendor documented, as of 1 Nov 2026
Yes

HTTP(S) POST with JSON to your endpoint on events such as delivered, failed and complained; account or domain level.

Vendor documented, as of 1 Nov 2026
Inbound emailReceive and process incoming mail.
Yes

Inbound Parse webhook parses incoming mail and attachments and forwards to your URL.

Vendor documented, as of 1 Nov 2026
Yes

Routes match incoming messages with filters and forward to a URL or address, or store them temporarily.

Free plan lists 1 inbound route; Basic lists 5

Vendor documented, as of 1 Nov 2026
Suppression managementHandling of bounced, complained and unsubscribed addresses.
Yes

Bounces, spam reports and unsubscribes are suppressed; group and global unsubscribe management exists.

Vendor documented, as of 1 Nov 2026
Yes

Hard bounces, unsubscribes and complaints are suppressed; lists are viewable and editable by API and control panel.

Vendor documented, as of 1 Nov 2026
Content
Stored templatesTemplates stored and rendered by the service.
Yes

Dynamic Templates are built and saved in the account and listed in a Dynamic Templates list.

Vendor documented, as of 1 Nov 2026
Yes

Predefined templates stored and rendered on send, with versions, via API or builder.

Pricing page lists the template builder and API from the Foundation plan up

Vendor documented, as of 1 Nov 2026
Marketing or broadcast sendingMarketing or bulk sending in the same product.
Yes

A Marketing Campaigns plan is referenced alongside the Email API plans.

Separate Marketing Campaigns product and plans

Vendor documented, as of 1 Nov 2026
Not verified
Testing
Test modeA sandbox or test mode that exercises the API without delivering to real recipients.
Yes

Sandbox mode in mail_settings validates a send request without a real send.

Vendor documented, as of 1 Nov 2026
Yes

o:testmode=yes processes messages normally without delivering them.

Vendor documented, as of 1 Nov 2026
Authentication
Domain authenticationCustom sending domains authenticated with SPF or DKIM.
Yes

Domain authentication via DNS covers SPF, DKIM and DMARC records.

Vendor documented, as of 1 Nov 2026
Yes

Custom domains with SPF and DKIM authentication are supported; free accounts cannot add a custom domain.

Custom domain not available on the free plan

Vendor documented, as of 1 Nov 2026
DMARC monitoringDMARC reports or monitoring offered by the product.
Limited

Monitoring is offered via a partner (Valimail) by pointing DMARC reports to its address.

Requires a separate Valimail account

Vendor documented, as of 1 Nov 2026
Limited

A DMARC Reports API under Mailgun Optimize returns DMARC DNS records and report data; it links to a Redsift referral.

The docs we read do not say which plan includes this.

Vendor documented, as of 1 Nov 2026
Delivery control
Dedicated IPA dedicated sending IP option.
Limited

One dedicated IP is allocated with Pro and Advanced Marketing Campaigns plans; more can be bought.

Not available on trial or Essentials accounts

Vendor documented, as of 1 Nov 2026 Due for a re-check.
Limited

Dedicated IPs can be added in IP Management and grouped into pools; a payment method is required.

DIPP pools need the feature enabled; pricing page did not list dedicated IP by plan

Vendor documented, as of 1 Nov 2026 Due for a re-check.
Region
EU region or data locationA documented EU sending region or data location. Read the detail, because these are different promises.
Limited

Documented EU data residency with EU subuser, api.eu.sendgrid.com and a dedicated EU IP.

Shared-IP customers must upgrade to Pro or Premier; some features unavailable to EU subusers

Vendor documented, as of 1 Nov 2026
Yes

US or EU based domains with separate API, SMTP and inbound MX hostnames; documented as a region choice for domains.

Vendor documented, as of 1 Nov 2026
Pricing model
Ongoing free planA continuing free plan with a sending allowance. A time-limited trial is Limited.
Limited

Pricing page shows a time-limited free trial of 100 emails per day, not a permanent free plan.

60-day trial

Vendor documented, as of 1 Nov 2026 Due for a re-check.
Limited

Ongoing Free plan at $0 with a daily cap, but without custom domains.

100 emails per day; no custom domain on free accounts

Vendor documented, as of 1 Nov 2026 Due for a re-check.
Usage-based billingBilled by usage without a fixed monthly plan.
Not verified
Not verified

Pricing

Both list monthly plans with starting prices. Mailgun also publishes overage rates per 1,000 emails. Read the current page for your volume, because the listed figures are starting prices.

Twilio SendGrid

3 plans are hidden because the price was last checked on 1 Nov 2026 and is due for a re-check.

Mailgun

4 plans are hidden because the price was last checked on 1 Nov 2026 and is due for a re-check.

Moving between them

Both accept SMTP and have similar concepts for templates and webhooks, but the payloads differ. Plan for rewriting event handling and recreating templates, and warm up any dedicated IP.

Sources (25)
Update log
  • 1 Nov 2026 Published from vendor documentation gathered on 1 November 2026. A person has not yet checked every fact.
  • 1 Nov 2026 First published.