Integrations/Mailgun
Mailgun logo

Mailgun + Courier

Turn Mailgun into a multi-channel notification system

Design and automate every message with Courier. Keep Mailgun for email delivery, then add SMS, push, and an in-app inbox from one API.

Overview

What Mailgun is

Mailgun is an email delivery service that lets you send messages programmatically through verified sending domains.

Courier sits in front of it as one API, a visual editor, journeys, and every other channel, so you keep Mailgun for delivery and build multi-channel notifications on top.

You need a Courier account and your own Mailgun account with an API key and a verified sending domain.

Why Courier

What you get with Mailgun + Courier

Use cases

What teams build with it

Onboarding and lifecycle journeys that marketing can edit without engineering
Beautifully designed transactional email, receipts, welcomes, and resets, from one template set
Add SMS or push to an existing email flow without wiring a new integration
Give users an in-app inbox so they see the same messages inside your product

Setup

Connect it in minutes

An admin adds Mailgun once on the Integrations page in Courier. Once connected, anyone on your team can design and send email through Mailgun, and add channels whenever they need them.

1
Add your Mailgun credentials
Add Mailgun as an email provider and enter your API Key, Domain, and From Address. For EU-region accounts, set Host to api.eu.mailgun.net.
2
Design a template
Build your email in Courier's visual editor, or bring over the content you already send through Mailgun.
3
Send from your app
Call the Send API with a recipient and template. Courier renders and delivers through Mailgun.

FAQ

Frequently asked questions

Can I use Mailgun with Courier?

Yes. Courier routes your transactional email through Mailgun as the delivery provider, so Mailgun keeps sending the email while Courier handles content, routing, and other channels from a single Send API call.

Do I still need my own Mailgun account?

Yes. Courier does not resell Mailgun, so you connect your own account, and its sending domain must be verified with a valid MX record in DNS or Mailgun returns 550 errors.

What do I need to connect Mailgun to Courier?

On Courier's Mailgun integration page you enter three values: your Mailgun API key, the verified sending domain, and a default From address. That is all Courier needs to start sending.

Which Mailgun region does Courier send through?

US by default. If your domain lives in Mailgun's EU region, set the host to api.eu.mailgun.net in the integration settings so Courier calls the correct Mailgun endpoint.

How does Courier track Mailgun delivery status?

By polling Mailgun automatically by default. For real-time updates, configure Mailgun webhooks for Delivered Messages and Permanent Failure events using Courier's webhook URL, then disable polling after about an hour.

Can I send attachments or pass Mailgun-specific options?

Yes. Attach base64-encoded files with a filename and contentType, and use the override object to pass Mailgun parameters like tags. Both reach Mailgun without leaving Courier's Send API.

Is Courier a replacement for Mailgun?

No. Courier sits in front of Mailgun, which still delivers every email. Courier adds the Send API, Journeys, and Design Studio, plus other channels like SMS, push, and Courier Inbox.

More

Related integrations