Integrations
Github Actions
Overview
Automate email delivery for any repository event. When code is pushed, issues are updated, or releases are published, Mailgun’s GitHub Action sends personalized emails to your team. Include commit data and actor information in HTML templates with dynamic variables. Mailgun’s logs confirm every delivery. Streamline communication across your development lifecycle with flexible triggers, multiple recipients, and simple secret management.
KEY FEATURES AND BENEFITS:
- Customize subject and body with HTML templates
- Use environment variables and event payload data in messages
- Send to multiple recipients by separating addresses with commas
- Get Mailgun API responses for debugging
- Trigger emails on any GitHub event: push, pull request, issue, schedule, and more
- Install free and configure quickly

Send emails directly from GitHub workflows using Mailgun’s reliable API for automated, event-driven communication.
Use Cases
Popular ways to use Mailgun with GitHub Actions
Build status alerts
Issue & PR updates
Deployment summaries
Custom event emails
How To Enable The Integration
Quick start: set up Mailgun integration with GitHub Actions
Get started in four simple steps. No servers or plugins required.
Step 1: Create or open a workflow file in .github/workflows/ (e.g., mailgun.yml).
Step 2: Add a Mailgun step from the GitHub Marketplace and reference your MAILGUN_API_KEY and domain as secrets.
Step 3: Define inputs such as to, and optionally subject and body/text as described in the action’s README.
Step 4: Commit and push your changes. On the selected event, the workflow sends an email using Mailgun’s API.
Why Sinch Mailgun
Why developers choose Mailgun integration with GitHub Actions
Fast setup
Reliable delivery
Flexible triggers
FAQS
Frequently asked questions
This is a community-maintained GitHub Action created by a third-party developer. It reliably integrates with Mailgun’s API and is widely used by developers.
Store your Mailgun API key and domain as encrypted secrets in your GitHub repository settings, then reference them in your workflow file.
Yes. Enter multiple email addresses separated by commas in the to field to notify several stakeholders at once.
Any GitHub event can trigger the Action, including push, pull_request, issues, releases, schedules, and custom webhooks.
Use environment variables and event payload data, such as ${{ github.actor }} or commit messages, directly in the subject or body fields.
Email limits depend on your Mailgun plan. GitHub Actions usage is determined by your GitHub account tier.
The GitHub Action is free to use. You only pay for Mailgun usage according to your selected plan.