Skip to content
Mailgun logo

Mailgun integration

Email delivery service for sending, receiving, and tracking emails

Actions
9
Triggers
8
Auth
Custom auth
License
MIT, open source
Updated
September 2026

About the Mailgun integration

Add the Mailgun piece to a flow, connect your account once, and the rest of the builder can read from it and write to it. Because the piece is open source you can run it on our cloud or self-host it, and combine Mailgun with 760+ other apps in the same flow.

Triggers

Start a flow the moment something happens in Mailgun

Each trigger below can start a flow on its own, either instantly or on a schedule.

  • New Bounce Event

    Triggers when an email permanently fails to deliver (hard bounce) in Mailgun

    1 field

  • New Complaint Event

    Triggers when a recipient reports an email as spam in Mailgun

    1 field

  • New Delivery Event

    Triggers when an email is successfully delivered in Mailgun

    1 field

  • New Failed Delivery Event

    Triggers when an email temporarily fails to deliver in Mailgun (will be retried)

    1 field

  • New Open Event

    Triggers when a recipient opens an email in Mailgun

    1 field

  • New Click Event

    Triggers when a recipient clicks a tracked link in an email in Mailgun

    1 field

  • New Unsubscribe Event

    Triggers when a recipient unsubscribes from emails in Mailgun

    1 field

  • Bulk Bounce Threshold Exceeded

    Triggers once when too many emails bounce within a set time period. Useful for catching spam attacks or deliverability problems early.

    4 fields

Actions

Everything Activepieces can do in Mailgun

Drop any of these into a flow and fill in the fields. No code is required.

  • Send Email

    Send an email using your Mailgun domain

    9 fields

  • Validate Email

    Validate an email address using Mailgun validation service. Requires a Mailgun account with email validation enabled.

    2 fields

  • Add Mailing List Member

    Add a new member to a Mailgun mailing list

    6 fields

  • Get Events

    Retrieve email events from your Mailgun domain (deliveries, failures, opens, clicks, etc.). Useful for monitoring and alerting.

    6 fields

  • Get Domain Stats

    Retrieve aggregated email statistics for a Mailgun domain (delivered, failed, opened, etc.). Useful for monitoring delivery health and detecting anomalies.

    3 fields

  • List Bounces

    Retrieve the list of bounced email addresses for a Mailgun domain. Useful for cleanup after delivery issues or spam attacks.

    2 fields

  • Delete Bounces (Bulk)

    Remove bounced addresses from the Mailgun suppression list, either all at once for a domain or a single address.

    3 fields

  • Get Domain Health

    Fetch the health of a Mailgun domain: current state, whether it has been disabled, and DNS verification status for sending and receiving records.

    1 field

  • Custom API Call

    Make a custom API call to a specific endpoint

    10 fields

Use Mailgun in a flow

Connect Mailgun once and every trigger and action above is yours to drop into the builder, alongside 760+ other apps. Free to start, on our cloud or your own servers.

Mailgun, answered.

Yes. Activepieces is open source and free to start, and the Mailgun piece is included on every plan, from the free cloud tier to any self-hosted deployment.

Add the Mailgun piece to a flow, then authenticate with Custom auth. Once connected, its 8 triggers and 9 actions are available anywhere in the builder.

"New Bounce Event" can start a flow that runs "Send Email", and you can chain Mailgun together with any of 760+ other apps and AI steps in between.

Yes. Activepieces is fully self-hostable, so you can run the Mailgun piece on your own infrastructure with your connections and your data staying in your environment.

Yes. Every piece you connect can be exposed over one Activepieces MCP server, so Claude, Cursor, Windsurf or any MCP client can call Mailgun actions as tools.