- Home
- Resources
- Integrations
- Mailgun
Mailgun n8n integrationAutomate Mailgun with n8n.
The Mailgun n8n integration is one node with one job: send the email. It exposes a single operation, two required fields, From Email and To Email, and six optional ones for copies, subject, body and attachments. No Mailgun Trigger exists, so the node runs after something else.
Verified Trustpilot reviews · AI, automation & growth agency
What does the Mailgun n8n integration actually do?
The integration is a single built-in node that sends an email through your Mailgun account, from any point in a workflow. The n8n catalog sums up its one operation in one line: sends an email via Mailgun. You give it a sender, one or more recipients, a subject and a body, and n8n hands the message to the Mailgun API using the key in your credential, the entry you create once in the n8n Credentials menu and reuse in every workflow that needs it. Nothing listens on the other side, because this tool has no trigger node.
The first job teams hand this node is the alert nobody reads a dashboard for. A workflow watches a Google Sheets tab, notices a row that crossed a threshold, and the Mailgun node carries the warning to the person who can act on it. Published n8n templates use that same shape for a price tracker and for a backup job that sends its notifications by email.
The second is the email that tells you a workflow broke. n8n can route a failed run to an error workflow, and one Mailgun node at the end of it turns that failure into a message in your inbox. That beats a red line in a run list nobody opens. If a channel suits the team better, Slack and Telegram nodes sit in the same workflow and take the same input.
The third is outbound sequences. A workflow reads the next batch of contacts from a database, an AI step writes the variation, and Mailgun sends each message from the domain you verified. Several published templates build exactly that, and a few pair Mailgun with Gmail in the same workflow.
Where the node stops is easy to describe. Its parameter list covers the sender, the recipients, the copies, the subject, the plain text body, the HTML body and the attachments. That is the whole surface. Any other call the Mailgun API accepts has no field here, so the HTTP Request node takes those, with the same API key you already pasted into the credential.
The other limit is direction. The catalog records zero events and no trigger for Mailgun, so the integration only ever pushes: something else opens the workflow, Mailgun closes it. Worth knowing too, Attachments takes no path to a file. It takes the names of the binary properties already carried by the item, separated by commas, which means the file has to arrive from an earlier node.
None of this needs code. The node ships with n8n as n8n-nodes-base.mailgun, so typing Mailgun in the node panel is the whole installation. How it sits next to the rest of the tool, and what changes when you host n8n yourself, is covered in the n8n review.
How do you connect Mailgun to n8n?
- 01
Verify a sending domain in Mailgun
Mailgun sends from domains it has checked. In your Mailgun account, add the domain the mail should come from and complete its verification. While you build, the sandbox domain that ships with every account does the job. It is there for testing, so plan the real domain before the workflow goes live.
- 02
Collect the three values the credential asks for
API Domain is the base URL of your account: pick
api.eu.mailgun.netif the account is based in Europe,api.mailgun.netotherwise. Email Domain is the sending domain you just verified. API Key is read in Mailgun under Settings, then API Keys. Copy all three before you switch tabs. - 03
Create the credential, then drop the node in
In n8n, open Credentials, start a Mailgun credential, paste the three values and save. Add the Mailgun node after your trigger and point it at that credential. Because the node exposes one operation, no resource or operation list stands in the way: the email fields are the first thing you see.
The Mailgun action available in n8n
The Mailgun node exposes one operation. For each one: the node as you configure it in n8n, the required fields, and our field notes.
Operations index
Sends an email via Mailgun
executeWhat you see in n8n
Notes & use cases
The node's only operation hands your message to the Mailgun API and returns the answer. It is an action, so something else runs first.
Key parameters
- From Email: the sender, required. A display name is accepted, as in
Admin <admin@example.com>. - To Email: the recipients, required. Comma-separated for several, or
{{ $json.email }}from the item. - Cc Email and Bcc Email: copies, same comma-separated format.
- Subject: what the recipient sees in the inbox list. Text and HTML hold the body, plain or formatted, and all three are optional, unlike the two fields above.
- Attachments: names of the binary properties on the item, comma-separated, never file paths.
Need help automating Mailgun with n8n?
A person reads every message.
Frequently asked questions
01Is the Mailgun n8n integration free?
02What credentials does the Mailgun node need?
03What are the limits of the Mailgun node in n8n?
04Can Mailgun start an n8n workflow in real time?
05n8n or Make for sending Mailgun email?
Get our weekly integration tips.
No spam. Unsubscribe anytime.



