For the complete site index, see llms.txt. Docs index: llms-docs.txt. Marketing corpus: llms-full.txt. Docs corpus: llms-full-docs.txt. Prefer markdown URLs where available (append .md).. Product skill: skill.md. Pricing: pricing.md. Docs MCP: /docs/mcp.

Reloop vs Mailgun

Migrate from Mailgun to Reloop.

Most of the work is DNS and templates.

  1. 1

    Add your domain in Reloop

    Add your domain in Reloop and publish the DKIM record (reloop._domainkey). Merge include:reloop.sh into your existing SPF record. Don't add a second SPF record.

  2. 2

    Swap the client

    Replace mg.messages.create(domain, {...}) with reloop.mail.send({...}). Send to as a string or array, and drop the domain argument; Reloop reads it from from.

  3. 3

    Handle errors as values

    Mailgun throws; Reloop returns emailError. Replace try/catch around sends with a check on emailError.

  4. 4

    Move templates

    Change Handlebars placeholders to triple braces: {{first_name}} becomes {{{first_name}}}, and pass values as template variables instead of h:X-Mailgun-Variables.

  5. 5

    Replace inbound routes

    Replace inbound routes with Reloop mailboxes, or keep a webhook flow with the email.received event.

  6. 6

    Point webhooks

    Point webhooks at a new handler. Reloop events are named email.delivered, email.bounced, email.complained and so on, and are signed with HMAC-SHA256 in the Reloop-Signature header.

  7. 7

    Import suppressions

    Import suppressions from Mailgun's bounces, complaints and unsubscribes lists, so you don't mail addresses that already failed.

  8. 8

    Ramp traffic

    Ramp traffic from 10% to 100% over a week or two, then remove Mailgun's DNS records.

Our SendGrid migration guide covers the same steps in more detail, including a traffic-split flag and a suppression import script that work just as well when coming from Mailgun.

Reloop