Mailgun integrations: an AI agent for email delivery

Letaido's Mailgun integrations let an AI agent report on delivery, flag bounces in HubSpot, alert Slack and send emails from your templates.

Best Mailgun integration jobs to start with

Delivery reports, bounce alerts and template updates. Open one to watch it run.

Mailgun integration options, compared

Five ways to connect Mailgun to the rest of your work.

OptionSet up by askingWorks across your appsRuns on its ownNo codeConnects thousands of apps
Letaido AI agentYesYesYesYesNo
Mailgun's own integrationsNoPartlyYesPartlyNo
Zapier, Make and similarYesYesYesYesYes
Mailgun API, SDKs and webhooksNoPartlyPartlyNoPartly
Mailgun MCP serverYesPartlyNoPartlyNo
Read the full comparison
OptionHow it worksBest forWatch out for
Letaido AI agentYou describe the job. The agent reads delivery numbers and events, checks suppression lists, saves template versions and sends from your domains. It runs on a Mailgun event, a schedule, another app's event or when you ask.Email work that crosses apps: weekly reports in Sheets, bounce alerts in Slack, bounces on HubSpot contacts, failed payment emails.A focused catalog, not thousands of apps. Mailgun keeps 1 to 30 days of events, depending on your plan.
Mailgun's own integrationsSet connections listed in Mailgun's docs, such as Slack deliverability alerts, Datadog and Splunk monitoring, WordPress, Supabase and Heroku.Sending from a website or app, and watching deliverability in a monitoring tool.Each one does a set job between Mailgun and that tool. Setup varies: the Supabase one runs through Edge Functions you code, and Heroku adds email to apps you deploy.
Zapier, Make and similarTriggers for bounces, deliveries, opens and clicks, complaints and unsubscribes start workflows the moment they happen. Actions send an email, add a mailing list member or validate an address. Zapier Copilot builds a workflow with you.Fixed handoffs, like a form entry that sends a Mailgun email.Check what Copilot sets up. New Log Data and New List are checked every 15 minutes on Zapier's entry plan.
Mailgun API, SDKs and webhooksA REST API and SMTP relay with SDKs for Python, Node.js, PHP, Java, Ruby and Go, plus webhooks for delivery, open, click, bounce, complaint and unsubscribe events.Sending from your own product, with exact control.Needs developers. An account API key has full access to the account.
Mailgun MCP serverYou run it on your own computer with your API key, in Claude Desktop, Claude Code, Cursor, VS Code or another MCP client. It sends email, reads stats and manages domains, templates and suppressions in a chat.Developers who want Mailgun answers and changes inside their AI tool.Runs only when you chat. Mailgun has no hosted version, and it has no delete tools.

How the Mailgun integration works

Connect Mailgun once. After that, you describe each job in plain English.

  1. 1Paste a Mailgun API key
  2. 2Ask for a job in a chat, or start from an example above
  3. 3Approve the first run

    Allow all read operations once per app; approve each kind of write once.

  4. 4Watch the first run in the chat

    Save it to run on a schedule or an app event.

How a Mailgun job starts

A Mailgun or Stripe event, a schedule or you asking starts the job.

  • When something happens in Mailgun or StripeA Mailgun email bounces, draws a spam complaint or someone unsubscribes, or a Stripe payment fails. Letaido creates the Mailgun webhook for you; Mailgun can take up to 10 minutes to start sending to it.
  • On a scheduleEvery morning or every Monday, like the weekly stats row or the bounce alert.
  • When you askType the job in a chat, like tracing a missing email, and it runs once.
Events

Mailgun events Letaido can react to

  • Email events on every domain: accepted, delivered, opened, clicked, failed for good or for now, spam complaints and unsubscribes
Setup details

Create a Mailgun API key

In Mailgun, open Account Settings, then API keys, and create a key. Copy it, since Mailgun shows it once. Use an account key (Admin role if your plan has roles), not a domain sending key, which can only send.

Paste it into Letaido

Pick your account's region, US or EU, so the agent reaches the right Mailgun servers. One key covers every domain in the account.

Name the domain and template

Say which sending domain, template, list or sheet the job is for. Mailgun has no default domain.

Watch the first run

Allow all read operations once per app; approve each kind of write once. Then save it to repeat.

Every Mailgun action the agent can take

249 actions in 12 groups, from sending and events to templates and IP pools.

ReadsWrites

Related integrations

Frequently asked

How do I connect Mailgun to Letaido? +

In Mailgun, open Account Settings, then API keys, create a key and paste it into Letaido with your region, US or EU. Use an account key (Admin role if your plan has roles), not a domain sending key, which can only send.

Can a Mailgun event start a job? +

Yes. A job can start when an email is accepted, delivered, opened, clicked, fails, draws a spam complaint or someone unsubscribes, on any of your domains. Letaido creates the Mailgun webhook for you, and Mailgun can take up to 10 minutes to start sending to it. Opens and clicks need tracking on for the domain.

Is there a Mailgun MCP server? +

Yes. You run it on your own computer with your API key, in Claude Desktop, Claude Code, Cursor, VS Code or another MCP client, and it works while you chat. Letaido is not an MCP server: it has its own Mailgun connector and runs whole jobs on a Mailgun event, a schedule or when you ask.

Does Mailgun work with Zapier? +

Yes. Zapier runs a workflow you build from fixed triggers and actions, like sending an email or adding a list member. With Letaido you describe the job and the agent reads Mailgun's numbers, events and lists, then acts in your other apps, like a daily bounce alert in Slack.

Will it send email from my Mailgun domains? +

Only when a job asks for it. Of the jobs above, only the failed payment job emails customers, and the template job sends a test to you.

How far back can it look in Mailgun? +

As far as your plan keeps events and logs, 1 to 30 days. The missing email job says how far back the data it found goes.

What do I approve before it changes Mailgun? +

Allow all read operations once per app; approve each kind of write once.

Give an AI agent your Mailgun account

Connect Mailgun, then ask for a job like "Log last week's Mailgun email stats in our Google Sheet every Monday". Leta gets it done on your schedule, or the moment you ask.

Get Letaido