---
title: "Connect SendGrid and Mailgun"
description: "Automate work between SendGrid and Mailgun with a no-code flow. Trigger from either side and act on the other, in minutes."
url: https://www.activepieces.com/pieces/sendgrid/mailgun
updated: 2026-11-26
---

> Every page on www.activepieces.com is available as markdown: add `.md` to the URL, or send `Accept: text/markdown`. Site index: https://www.activepieces.com/llms.txt

# Connect SendGrid to Mailgun

[Pieces](https://www.activepieces.com/pieces) › [SendGrid](https://www.activepieces.com/pieces/sendgrid) › + Mailgun

Move data between SendGrid and Mailgun the moment it happens. Build the flow visually, or let AI write it for you, then run it on our cloud or your own infrastructure.

- **SendGrid triggers:** 0
- **SendGrid actions:** 8
- **Mailgun triggers:** 8
- **Mailgun actions:** 9

## Automation ideas: What you can build with SendGrid and Mailgun

A few flows teams run between SendGrid and Mailgun. Use one as a starting point, or build your own from scratch.

### New Bounce Event in Mailgun creates Send Email in SendGrid

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

### New Bounce Event in Mailgun creates Send Dynamic Template in SendGrid

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

### New Bounce Event in Mailgun creates Create or Update Contact in SendGrid

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

### New Complaint Event in Mailgun creates Send Email in SendGrid

Triggers when a recipient reports an email as spam in Mailgun

## Questions, answered

### Do I need to write code to connect SendGrid and Mailgun?

No. Pick a trigger on either piece and an action on the other, map the fields, and turn the flow on. Add a code step later only if you want to.

### Can SendGrid and Mailgun talk in both directions?

Yes. Build one flow that starts in SendGrid and acts in Mailgun, and a second that runs the other way, in the same project.

### Where does this run?

On our EU cloud in Frankfurt, or self-hosted on your own infrastructure with Docker or Kubernetes. The MIT-licensed core means there is always an exit.

## Full details

- [SendGrid integration](https://www.activepieces.com/pieces/sendgrid)
- [Mailgun integration](https://www.activepieces.com/pieces/mailgun)

## More ways to automate SendGrid

- [SendGrid + WhatsScale](https://www.activepieces.com/pieces/sendgrid/whatsscale): Send WhatsApp messages, manage contacts, and automate conversations via WAHA
- [SendGrid + TimelinesAI](https://www.activepieces.com/pieces/sendgrid/timelines-ai)
- [SendGrid + ClickFunnels](https://www.activepieces.com/pieces/sendgrid/clickfunnels)
- [SendGrid + Inbox](https://www.activepieces.com/pieces/sendgrid/useinbox): Email marketing and transactional email automation with INBOX (useinbox.com). Manage contacts, lists, campaigns, and react to delivery events.
- [SendGrid + Loops](https://www.activepieces.com/pieces/sendgrid/loops): Loops is an email platform for sending beautiful transactional and marketing emails. Manage contacts, trigger automations with events, and send transactional emails from your workflows.

## More ways to automate Mailgun

- [Mailgun + WhatsScale](https://www.activepieces.com/pieces/mailgun/whatsscale): Send WhatsApp messages, manage contacts, and automate conversations via WAHA
- [Mailgun + TimelinesAI](https://www.activepieces.com/pieces/mailgun/timelines-ai)
- [Mailgun + ClickFunnels](https://www.activepieces.com/pieces/mailgun/clickfunnels)
- [Mailgun + Inbox](https://www.activepieces.com/pieces/mailgun/useinbox): Email marketing and transactional email automation with INBOX (useinbox.com). Manage contacts, lists, campaigns, and react to delivery events.
- [Mailgun + Loops](https://www.activepieces.com/pieces/mailgun/loops): Loops is an email platform for sending beautiful transactional and marketing emails. Manage contacts, trigger automations with events, and send transactional emails from your workflows.
