Skip to main content
Connect your Mailgun account to export email templates created in Brew directly to your Mailgun domain. No manual copy-pasting, just design in Brew and export to Mailgun in one click.
Mailgun Integration

Setup

1

Open the Mailgun integration in Brew

In Brew, go to Integrations and click the Mailgun card.
2

Copy your domain name

In Mailgun, go to Sending → Domain Settings. Copy your domain name and paste it into the first field in Brew.
3

Copy your Private API Key

Click your profile icon in the top right corner, then go to API Security. Click the eye icon next to your Private API Key to reveal it, then copy it.
4

Paste and Connect

Go back to Brew, paste the API key into the second field, and click Connect.
That’s it. Mailgun is now connected to Brew.

Exporting a Template

Once connected, you can export any email to Mailgun:
  1. Open an email you’ve created in Brew
  2. Click Send
  3. Choose to export the template to Mailgun
  4. Give it a name and click Export
The template appears in Mailgun under Send → Sending → Templates, ready to use.
Exporting an email under a template name your brand already exported adds its design to that template as the active version, so the Mailgun sends that use the template pick it up. That’s true for an edited email and for any other email you export under that name. Earlier versions stay in the template’s history, and exporting a design that’s already stored there makes that version active again. Mailgun stores template names in lower case.
Brew only updates a template your brand exported from Brew. When the name belongs to a template made in Mailgun or by another Brew brand, Brew leaves it untouched and asks you to export under a different name. The same goes for an older Brew export whose Mailgun description reads just Brew export, because it doesn’t record which brand made it.

Requirements

  • A Mailgun account with a verified domain
  • Your domain name (found under Sending → Domain Settings)
  • Your Private API Key (found under Profile → API Security)