AppsPricingBlogTry it
Mailgun logo
Twilio SendGrid logo

Connect Mailgun to Twilio SendGrid

Build an AI agent that works across Mailgun and Twilio SendGrid, on a schedule or when you click Run.

11 source actions
24 target actions
Reverse direction supported

Why Connect Mailgun & Twilio SendGrid?

Read what you need from Mailgun

Your agent uses Mailgun's documented actions to pull the records it needs, each time it runs.

Run a Twilio SendGrid action

Then it uses one of 24 documented actions, such as Add Email to Global Suppression, Add or Update Contact, Create Contact List.

Test it, then put it on a schedule

Run it once on your own data and check the result. Then set it to run daily, on weekdays or weekly.

Available Triggers & Actions

Mailgun logo

Mailgun

Triggers (11)

New Bounce (Instant)

Emit new event when the email recipient could not be reached.

webhook
New Click (Instant)

Emit new event when the email recipient clicked on a link in the email. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section

webhook
New Complaint (Instant)

Emit new event when the email recipient clicked on the spam complaint button within their email client. Feedback loops enable the notification to be received by Mailgun.

webhook
New Delivery (Instant)

Emit new event when an email is sent and accepted by the recipient email server.

webhook
New Delivery Failure (Instant)

Emit new event when an email can't be delivered to the recipient email server.

webhook
New Log Data

Emit new event when new data is logged in Mailgun's Control Panel. Occurs for most actions within the associated Mailgun account.

polling
New Mailing List

Emit new event when a new mailing list is added to the associated Mailgun account.

polling
New Open (Instant)

Emit new event when the email recipient opened the email and enabled image viewing. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section

webhook
New Permanent Failure (Instant)

Emit new event when an email can't be delivered to the recipient email server due to a permanent mailbox error such as non-existent mailbox.

webhook
New Temporary Failure (Instant)

Emit new event when an email can't be delivered to the recipient email server due to a temporary mailbox error such as an ESP block. ESP is the Email Service Provider managing the recipient email server.

webhook
New Unsubscribe (Instant)

Emit new event when the email recipient clicked on the unsubscribe link. Unsubscribe tracking must be enabled in the Mailgun control panel. See more at the Mailgun User's Manual Tracking Messages section

webhook

Actions (11)

Create Mailing List Member

Add to an existing mailing list. See the docs here

Create Route

Create a new route. See the docs here

Delete Mailing List Member

Delete a mailing list member by address. See the docs here

Get Mailing List Member

Retrieve a mailing list member by address. See the docs here

Get Mailing List Members

List all mailing list members. See the docs here

List Domain Name Options

Retrieves available options for the Domain Name field.

List Domains

List domains in Mailgun. See the docs here

List Mailing List Options

Retrieves available options for the Mailing List field.

Send Email

Send email with Mailgun. See the docs here

Suppress Email

Add email to the Mailgun suppression list. See the docs here

Verify Email

Verify email address deliverability with Mailgun. See the docs here

Twilio SendGrid logo

Twilio SendGrid

Triggers (2)

New Contact

Emit new event when a new contact is created

polling
New Events (Instant)

Emit new event when any of the specified SendGrid events is received

webhook

Actions (24)

Add Email to Global Suppression

Allows you to add one or more email addresses to the global suppressions group. See the docs here

Add or Update Contact

Adds or updates a contact. See the docs here

Create Contact List

Allows you to create a new contact list. See the docs here

Create Send

Create a single send. See the docs here

Delete Blocks

Allows you to delete all email addresses on your blocks list. See the docs here

Delete Bounces

Allows you to delete all emails on your bounces list. See the docs here

Delete Contacts

Allows you to delete one or more contacts. See the docs here

Delete Global Suppression

Allows you to remove an email address from the global suppressions group. See the docs here

Delete List

Allows you to delete a specific contact list. See the docs here

Get a Block

Gets a specific block. See the docs here

Get A Global Suppression

Gets a global suppression. See the docs here

Get All Bounces

Allows you to get all of your bounces. See the docs here

Get Contact Lists

Allows you to get details of your contact lists. See the docs here

List ASM Group ID Options

Retrieves available options for the ASM Group ID field.

List ASM Groups to Display Options

Retrieves available options for the ASM Groups to Display field.

List Blocks

Allows you to list all email addresses that are currently on your blocks list. See the docs here

List Categories Options

Retrieves available options for the Categories field.

List Design Id Options

Retrieves available options for the Design Id field.

List Email Options

Retrieves available options for the Email field.

List Email Options

Retrieves available options for the Email field.

List Emails Options

Retrieves available options for the Emails field.

List Emails Options

Retrieves available options for the Emails field.

List From Email Options

Retrieves available options for the From Email field.

List Global Suppressions

Allows you to get a list of all email address that are globally suppressed. See the docs here

Integration Features

11 documented Mailgun actions
24 documented Twilio SendGrid actions
Plain-English agent instructions
Daily, weekday or weekly schedule, or run on demand
Execution monitoring
A supported Twilio SendGrid to Mailgun direction

Capability Examples

Mailgun trigger → Twilio SendGrid action

Catalog example
MailgunMailgun

New Bounce (Instant)

Twilio SendGridTwilio SendGrid

Add Email to Global Suppression

Twilio SendGrid trigger → Mailgun action

Reverse direction
Twilio SendGridTwilio SendGrid

New Contact

MailgunMailgun

Create Mailing List Member

How It Works

1

Connect Apps

Authenticate your Mailgun and Twilio SendGrid accounts

2

Describe the Job

Say what to read from Mailgun and what to do in Twilio SendGrid

3

Choose an Action

Select the documented Twilio SendGrid operation to run

Test and Review

Verify field mapping and provider responses before activation

Frequently Asked Questions

Integration Benefits

Scheduled or On-demand Runs

Runs daily, on weekdays or weekly at a set time, or when you click Run. It does not fire on live Mailgun events yet.

Automated Actions

Use 24 documented Twilio SendGrid actions each time the agent runs.

Provider Authentication

Review the authentication requirements published by each provider before activating the workflow.

Guided Configuration

Describe the job in plain English. The agent picks theMailgun and Twilio SendGrid actions it needs.

Your Own Accounts

You connect your own Mailgun and Twilio SendGrid accounts. App connections need a paid plan.

Execution Review

Test the workflow and review provider responses before relying on it in production.

Twilio SendGrid logoMailgun logo

Reverse Integration Available

Also connect Twilio SendGrid to Mailgun for bidirectional automation

View Integration
Mailgun logo

All Mailgun Integrations

Explore all available Mailgun connections

View All Integrations
Twilio SendGrid logo

All Twilio SendGrid Integrations

Explore all available Twilio SendGrid connections

View All Integrations

Ready to Connect Mailgun & Twilio SendGrid?

Build this agent in Mazaal AI and test it on your ownMailgun and Twilio SendGrid data.

Start building

Rather not build it yourself? We set up one Mailgun to Twilio SendGrid agent on your accounts for A$490: a 30-minute call, a test on your real data, and 14 days of fixes. Plan billed separately. Email Enod