Resources · Zapier integration

Mailgun Zapier integrationAutomate Mailgun with Zapier.

The Mailgun Zapier integration turns what happens to your emails into Zaps, and lets other tools send and validate through Mailgun. Zapier lists 10 triggers, 6 actions and 0 searches for Mailgun; 8 of the 10 triggers are instant.

Verified Trustpilot reviews · AI, automation & growth agency

Overview

What the Mailgun Zapier integration is for

Zapier links apps without code. Mailgun is an email service driven by APIs, to send, receive, track and store email, and Zapier makes it usable without writing code: each bounce, complaint, open, click or inbound email can start a Zap, and Zapier can send email, add list members and validate addresses through your Mailgun account.

Three outcomes built on real operations. Bad addresses caught early: New Bounce Event fires the moment an email fails, and Validate Email checks an address before it ever reaches a list. Inbound mail that turns into work: New Inbound Email via Route sets up a Mailgun route for you and hands every matching message to the next step, so a support or quotes address feeds your tools without a mailbox in between. A sales signal on every click: New Open/Click Event tells you who opened an email or clicked a tracked link in it.

What Zapier does not do for Mailgun: there is no search step, so a Zap cannot look up a member or a domain before acting. It does not create mailing lists or domains. For anything outside the six actions, API Request (Beta) exists, but it is a raw, technical step and not a shortcut for beginners.

If you are comparing platforms, the Mailgun n8n integration and the Mailgun Make integration list what the other two offer for the same app.

Vocabulary

Zapier words in one minute

Seven words come back on this page. Here they are in plain English, once each.

Zap
The automation you build on Zapier: one trigger, then one or more actions that run every time the trigger event happens.
Trigger
The event in an app that starts the Zap. Once the Zap is on, Zapier waits for it, such as a new Mailgun bounce.
Action
What the Zap does once it has started: the step that writes or sends something for you, like sending an email.
Task
The unit Zapier bills: one action your Zap completes successfully. Your plan's allowance is a count of those.
Polling vs instant
A polling trigger is checked by Zapier on a timer. An instant trigger is reported by the app itself the moment the event happens.
Filter
A step that lets the Zap go on only when what arrived meets your condition, and stops it there otherwise.
Multi-step Zap
Any Zap beyond one trigger and one action. A filter or a second action makes it one, and it then needs a paid plan.
Cost

What a Mailgun Zap really costs

Mailgun is not a premium app, so it runs on the free plan. Zapier bills in tasks, and only completed actions count.

  • Free plan100 tasks per month
  • Free plan limit2 steps per Zap
  • Premium appNo
  • Instant triggers8 of 10

The trigger never costs a task, and neither do Zapier's checks on the two polling triggers. Each action that succeeds is one task; a failed one is not counted. The free plan gives 100 tasks a month and two-step Zaps. Mailgun events are numerous, though: a filter that keeps only permanent bounces, or only clicks, makes the Zap multi-step and needs a paid plan. Without that filter, every event that reaches an action spends a task.

Connect

Connect Mailgun to Zapier in 3 steps

  1. 01

    Open the Apps page

    In your Zapier account, go to Apps and click + Add connection. Type Mailgun in the search box of the dialog and pick it. Check the name before you confirm.

  2. 02

    Sign in to Mailgun

    Click Add connection. A new tab opens on Mailgun. Sign in with the account that owns your sending domains and mailing lists, since the Zap only reaches what that account reaches.

  3. 03

    Grant access

    Approve the access Zapier asks for. The connection is saved under Apps and reused by every Mailgun step, so every later Zap goes straight to the fields.

First Zap

Your first Mailgun Zap: acknowledge every quote request

GoalReply automatically to every email sent to your quotes address, through Mailgun.

  1. 01

    Pick the trigger

    Create a Zap, choose Mailgun and New Inbound Email via Route. Zapier creates the route in Mailgun for you. Test it: it brings back the three most recent matching emails.

  2. 02

    Add a filter

    Click the plus icon, choose Filter, then set the field (subject), a text rule and the word your clients use. Everything else stops here. The Zap is now multi-step.

  3. 03

    Add Send Email

    Pick Mailgun as the action app and Send Email. Set a From address on your Mailgun domain, map the sender of the inbound email into To, and write a subject.

  4. 04

    Write the reply

    Thank the person, say when they will hear back, and reuse their subject so the thread stays readable. Then run the action test and check the email arrives.

  5. 05

    Publish

    Click Publish. The trigger is instant, so each request gets its reply right away. Emails received before publishing get nothing.

Triggers

Mailgun triggers on Zapier

10 events start a Zap when something happens in Mailgun, and 8 of them are instant: the app calls Zapier straight away, whatever your plan.

1

New Log Data

Polling trigger

In Zapier“Triggers when new log entries are found in Mailgun. Because this trigger uses polling, multiple log entries may be returned at once during each polling interval.”

Picks up new entries from your Mailgun logs, the running record of what your account did. It is the broadest view, useful when no single event trigger fits.

How it fires
Zapier goes and looks at regular intervals, and how often depends on your plan: every 15 minutes on the free one
When to use it
a developer team that wants every log line copied into a spreadsheet or a monitoring tool for later analysis.
Watch out
several entries can arrive together at each check, so the Zap runs in bursts rather than one by one.
2

New Alert

Instant trigger

In Zapier“Triggers when a Mailgun alert occurs. Validation alerts (e.g., bulk validation job completed, validation previews) are available on all plans. Deliverability alerts (e.g., IP or domain blocklist changes, reputation shifts) require an Optimize plan.”

Fires when Mailgun raises an alert. Validation alerts, such as a finished bulk validation job, work on every Mailgun plan; deliverability alerts, such as blocklist or reputation changes, need Mailgun's Optimize plan.

How it fires
the app tells Zapier the moment it happens, so the Zap starts right away, whatever your plan
When to use it
letting the marketing team know a bulk validation job is done, so they can pull the results.
Watch out
without Optimize, deliverability alerts never arrive, whatever Zapier plan you pay for.
3

New Bounce Event

Instant trigger

In Zapier“Triggers when an email permanently or temporarily fails in Mailgun.”

Reports an email that failed, permanently or temporarily. It is the earliest warning that an address on your list is wrong or unreachable.

How it fires
the app tells Zapier the moment it happens, so the Zap starts right away, whatever your plan
When to use it
a SaaS company that flags the customer record in its CRM when a billing email bounces, before the next invoice goes out.
Watch out
temporary failures come through too, so filter on the type if only hard failures matter.
4

New Complaint Event

Instant trigger

In Zapier“Triggers when a recipient reports an email as spam in Mailgun.”

Tells you when a recipient reports one of your emails as spam. Few events say more clearly that someone does not want your mail.

How it fires
the app tells Zapier the moment it happens, so the Zap starts right away, whatever your plan
When to use it
a newsletter publisher that wants each complaint logged with the campaign name, to spot which sends annoy readers.
Watch out
act on it in every tool that emails that person, not only in Mailgun.
5

New Delivery Event

Instant trigger

In Zapier“Triggers when an email is successfully delivered in Mailgun.”

Confirms that an email was delivered successfully. It proves delivery, not reading, which is a different event.

How it fires
the app tells Zapier the moment it happens, so the Zap starts right away, whatever your plan
When to use it
a legal or accounting firm that keeps a record of when each contract or notice email was delivered.
Watch out
every successful send fires it, so plan the task budget before pairing it with an action.
6

New Failed Delivery Event

Instant trigger

In Zapier“Triggers when an email fails to deliver in Mailgun.”

Signals an email that did not get delivered. It sits next to the bounce trigger and answers one plain question: did it arrive?

How it fires
the app tells Zapier the moment it happens, so the Zap starts right away, whatever your plan
When to use it
an ecommerce team that wants support warned when an order confirmation never reached the customer.
Watch out
like every trigger here, it only covers emails sent after the Zap is switched on.
7

New Inbound Email via Route

Instant trigger

In Zapier“Triggers when an incoming email matches a Mailgun route. Automatically creates a route in Mailgun to forward emails to Zapier. Use Zapier Filters and Paths to process emails based on sender, subject, or content.”

Receives every incoming email that matches a Mailgun route, and creates that route in Mailgun on its own so mail is forwarded to Zapier.

How it fires
the app tells Zapier the moment it happens, so the Zap starts right away, whatever your plan
When to use it
a quotes or support address whose messages should become records in your tools without anyone forwarding them.
Watch out
sorting by sender, subject or content is a job for a Zapier filter after the trigger, which makes the Zap multi-step.
8

New Open/Click Event

Instant trigger

In Zapier“Triggers when a recipient opens an email or clicks a tracked link in Mailgun.”

Fires when a recipient opens an email or clicks a tracked link in it. It is the engagement signal of the set.

How it fires
the app tells Zapier the moment it happens, so the Zap starts right away, whatever your plan
When to use it
a B2B sales team that wants a heads-up when a prospect clicks the pricing link of a proposal email.
Watch out
opens and clicks share one trigger, so a filter is what separates a casual open from a real click.
9

New Unsubscribe Event

Instant trigger

In Zapier“Triggers when a recipient unsubscribes in Mailgun.”

Lets you know when a recipient unsubscribes in Mailgun, so the decision can follow them into your other tools.

How it fires
the app tells Zapier the moment it happens, so the Zap starts right away, whatever your plan
When to use it
an online course platform that marks the student as opted out in its CRM, so no one sends them a promotion by hand.
Watch out
the unsubscribe only reaches tools you wire it into; each one needs its own action.
10

New List

Polling trigger

In Zapier“Triggers when a new mailing list is added to your account.”

Starts a Zap when a new mailing list is added to your Mailgun account. It is an admin signal more than a marketing one.

How it fires
Zapier goes and looks at regular intervals, and how often depends on your plan: every 15 minutes on the free one
When to use it
an agency running several client lists that wants each new one recorded in its project tool.
Watch out
this trigger waits for Zapier's next check, so a list created a moment ago may not show up yet.
Actions

Mailgun actions on Zapier

Mailgun gives you 6 actions. For each one: what it does for you, when to reach for it, and what to watch out for.

1

Bulk Email Validation

Action

In Zapier“Upload a CSV (with an "email" header) and start a bulk validation job using Mailgun V4 API.”

Uploads a CSV file of addresses and starts a bulk validation job in Mailgun, named by the Job List Name you give it.

When to use it
cleaning a purchased or old list in one go before a campaign.
Watch out
the CSV must include a column headed email.
2

Send Email

Action

In Zapier“Sends an email using your Mailgun account.”

Sends an email through your Mailgun account, with a sender, one or more recipients separated by commas, and a subject. It is the step that turns any event into a message.

When to use it
an automatic acknowledgment for every web form or quote request.
Watch out
the From address must use a domain on your Mailgun account.
3

Get Bulk Validation Results

Action

In Zapier“Retrieves completed bulk validation job results using the job identifier for automated result processing.”

Retrieves the results of a finished bulk validation job, using the Job ID returned when the job was started.

When to use it
after a New Alert says a validation job is done, pull the results into the tool that holds your list.
Watch out
without the right Job ID, there is nothing to fetch.
4

Add Mailing List Member

Action

In Zapier“Adds a new member to a mailing list in Mailgun.”

Adds a new member to one of your Mailgun mailing lists, from an address another app hands over.

When to use it
every webinar registrant joins the follow-up list without an import.
Watch out
the required Update field decides what happens with an existing member: Yes updates them, No raises an error on the duplicate and the step fails.
5

Validate Email

Action

In Zapier“Validates an email address using Mailgun's validation service and returns comprehensive deliverability results.”

Checks a single address with Mailgun's validation service and returns detailed deliverability results for the next steps.

When to use it
checking a signup address before it is added to a list or a CRM.
Watch out
it validates one address per run, so each check is a task.
6

API Request (Beta)

Action

In Zapier“This is an advanced action which makes a raw HTTP request that includes this integration's authentication.”

An advanced step that sends a raw HTTP request to Mailgun with your connection's authentication already attached. It covers what the other actions do not.

When to use it
a developer on your team needs a Mailgun feature that has no ready-made action.
Watch out
requests only go to domains tied to Mailgun, and the Stop on error setting decides whether a failure halts the Zap.
When it breaks

When a Mailgun Zap breaks

Zapier links one help article to Mailgun, a getting-started guide, and documents no rate limit specific to it. What breaks comes from required fields, Mailgun's own plan rules and limits common to every Zap.

Most of these show up on the first test or the first busy day. Rule them out before you publish; the Zapier troubleshooting page covers the rest.

  • Sender domain not on the account

    Send Email needs a From address on a domain that belongs to your Mailgun account. Any other domain makes the step fail at the first test.
  • Duplicate member error

    Add Mailing List Member with Update set to No raises an error when the address is already on the list. Set it to Yes if repeats are expected.
  • Deliverability alerts never come

    New Alert sends deliverability alerts only on Mailgun's Optimize plan. Validation alerts work on every plan; the rest stays silent without it.
  • Sending on delivery: the loop

    A Zap that sends an email on New Delivery Event delivers a new email, which fires the trigger again. It sets itself off and burns tasks fast.
  • Nothing from before the Zap

    A Zap only reacts to events after it is switched on. Past bounces, clicks or inbound emails are never replayed; moving them is a separate job.
  • Logs in bursts

    New Log Data can return several entries at each check. After a busy period, a large batch can also be held back by Zapier's flood protection.
Need help

Need help automating Mailgun with Zapier?

A person reads every message.

FAQ

Mailgun Zapier integration: common questions

01Is the Mailgun Zapier integration free?
Yes. Mailgun is not a premium app, so it works on Zapier's free plan. That plan gives 100 tasks a month and Zaps of two steps: one trigger and one action. A filter, for example to keep only permanent bounces or only clicks, makes the Zap multi-step and needs a paid plan. Keep in mind that some Mailgun features behind the triggers depend on your Mailgun plan, such as deliverability alerts, which need Mailgun's Optimize plan.
02How many tasks does a Mailgun Zap use?
One task per action that succeeds, nothing for the trigger. Zapier's checks on New Log Data and New List are free as well. A failed action is not counted. The risk is volume: New Delivery Event fires for every email delivered, and New Open/Click Event for every open, so pairing them with an action without a filter can empty 100 free tasks quickly. Validate Email costs a task per address checked.
03Is Mailgun on Zapier real time?
For 8 of the 10 triggers, yes. The bounce, complaint, delivery, failed delivery, inbound email, open and click, unsubscribe and alert triggers are instant: Mailgun tells Zapier the moment it happens, whatever your plan. New Log Data and New List are polling triggers: Zapier checks every 15 minutes on Free, 2 on Professional, 1 on Team and Enterprise. A lightning bolt in the editor marks a Zap built on an instant trigger.
04What does it take to connect Mailgun?
A Mailgun account you sign in to from Zapier, with access to the domains and lists you want the Zap to use. Open Apps, click + Add connection, pick Mailgun, sign in and grant access. Before sending, make sure the domain of your From address is on that Mailgun account, since Send Email requires it. No action creates a mailing list, so the list used by Add Mailing List Member must already exist. One connection then serves every Zap.
05Why does Add Mailing List Member fail on some contacts?
Most often because the address is already on the list and the Update field is set to No. In that case Mailgun raises an error on the duplicate and the step stops. Set Update to Yes and an existing member is updated instead. The List and Address fields are required as well, so an empty email coming from the trigger also makes the step fail. A failed step does not cost a task, but the contact is not added.
06What if the Mailgun operation you need is not available?
Then Zapier does not offer it as a ready-made step. The visible set is ten triggers and six actions, with no search, no list creation and no domain management. API Request (Beta) can reach other Mailgun features with your connection, but it is a technical step meant for someone comfortable with raw requests. Compare what the n8n and Make pages list for Mailgun before you build a workaround. Another tool may cover the gap.
07Zapier, Make or n8n for Mailgun?
Choose by criterion. Zapier gives Mailgun eight instant triggers and six actions, and runs two-step Zaps on the free plan, which suits teams that want Mailgun events in many other apps quickly. Mailgun events are high volume, so per-action billing and the paid requirement for filters weigh heavily: compare with what Make and n8n expose for the same app. Hosting and pricing model matter too. No platform wins every criterion.