Comparison

Sovereign Mail vs Mailgun

An honest comparison. Both send transactional email well; the real difference is UK sovereignty and privacy versus Mailgun's proven deliverability track record and maturity.

  Sovereign Mail Mailgun
UK-owned & UK-hosted ✓ Yes No (US-headquartered; owned by Sinch, Sweden)
Outside US CLOUD Act ✓ Yes No
Where data is hosted ✓ UK US, or an EU region
No open/click tracking (privacy) ✓ Never tracks/rewrites links Tracks opens & clicks
Public-sector path (DSPT/DTAC, G-Cloud) ✓ Yes —
Proven deliverability track record New — warming dedicated UK IPs ✓ Established for over a decade
Inbound email processing Not yet ✓ Yes (Routes)
SMTP sending Not yet (REST API only) ✓ Yes
REST API + batch send Yes Yes

Choose Sovereign Mail if…

you need your email data held in the UK by a UK company rather than in an EU region of a US-headquartered one, you don't want recipients tracked, or you sell to the UK public sector.

Choose Mailgun if…

you need SMTP, inbound routing, or Mailgun's long track record, and an EU region under a US-headquartered company meets your requirements.

Switching from Mailgun is quick

The APIs are close cousins, so for most apps the code change takes under an hour. Your DNS can serve both providers at once, so there's no cut-over day: move traffic across when you're ready.

  1. Create an account and add your sending domain. Publish the DNS records we show you. They sit alongside Mailgun's (each provider signs with its own DKIM key), so both keep working during the switch. If your domain already has an SPF record, add our include: to it rather than creating a second one.
  2. Swap the API call. Same shape, different names:
    MailgunSovereign Mail
    POST https://api.mailgun.net/v3/{domain}/messages (EU: api.eu.mailgun.net)POST /api/v1/email — the domain comes from your from-address
    Basic auth — api:YOUR_API_KEYAuthorization: Bearer smk_live_…
    Form fields (-F)A JSON body
    fromfrom — a bare address (no "Name <…>" yet)
    to — repeatable, up to 1,000 with recipient-variablesto — one address; use batch (up to 500) for several
    subject · text · htmlsubject · text · html
    template + t:variables (or h:X-Mailgun-Variables)templateId + variables (string values)
    o:testmode=yesA test key (smk_test_…): checked and recorded, never delivered
    o:tracking · o:tracking-clicks · o:tracking-opensNot available — we never track recipients
    Bounce & complaint webhooksApplied automatically: the address is suppressed

    Before · Mailgun

    curl -s --user "api:$MAILGUN_API_KEY" \
      https://api.eu.mailgun.net/v3/mg.example.co.uk/messages \
      -F from="Example <noreply@example.co.uk>" \
      -F to=user@example.org \
      -F subject="Reset your password" \
      -F text="…"

    After · Sovereign Mail

    curl https://sovmail.co.uk/api/v1/email \
      -H "Authorization: Bearer $SOVMAIL_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"from":"noreply@example.co.uk","to":"user@example.org",
           "subject":"Reset your password","text":"…"}'
  3. Test without sending anything. Use a test key (smk_test_…): every request is checked and recorded exactly as live, but nothing is delivered and nothing counts against your plan.
  4. Switch over. Put the new path behind a config switch, send a share of your traffic, then all of it. Keep Mailgun for a week as a fallback.

Or let your AI assistant do it

Paste this into Claude, ChatGPT, Gemini, Copilot or Cursor in your project. It points the assistant at our machine-readable guide, so it uses the real API instead of guessing.

Switch this codebase's transactional email from Mailgun to Sovereign Mail. Find every place it sends email first. Read https://sovmail.co.uk/llms-full.txt and follow its contract exactly. The API key is in SOVMAIL_API_KEY and the from-address in SOVMAIL_FROM. Keep the old provider working behind a config switch until I've checked the new path. Tell me about anything the code relies on that Sovereign Mail doesn't support (several recipients in one message, cc/bcc, reply-to, attachments, display names, open/click tracking) instead of silently dropping it. Show me a diff before changing anything.

What works differently

Moving from somewhere else? Switching guides for Mailgun, MailerSend, Mailjet, SMTP2GO, SendGrid, Amazon SES and Resend.

Frequently asked questions

Doesn't Mailgun's EU region solve data residency?

It keeps data in the EU, not the UK, and Mailgun is headquartered in the US, so it can still be compelled to disclose data under the US CLOUD Act wherever that data is stored. For many UK buyers the question is jurisdiction, not just location.

Can Sovereign Mail replace Mailgun?

For transactional email sent over a REST API, yes — including templates, batch send, webhooks and automatic suppression. It does not yet offer SMTP or inbound routing.

How long does switching from Mailgun take?

Mailgun takes form fields and we take JSON, so it's usually one call to rewrite. Your DNS can serve both providers at once while you move traffic across.

Other comparisons: vs Postmark · vs SendGrid · vs MailPace.

Try the UK-sovereign option

Free tier, no card required. UK-owned, UK-hosted.

Create an account