AppsPricingBlogTry it
Mailgun logo
Microsoft Teams logo

Connect Mailgun to Microsoft Teams

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

11 source actions
12 target actions
Reverse direction supported

Why Connect Mailgun & Microsoft Teams?

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 Microsoft Teams action

Then it uses one of 12 documented actions, such as Create Channel, Get Chat Message, Get Current User.

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

Microsoft Teams logo

Microsoft Teams

Triggers (6)

New Channel

Emit new event when a new channel is created within a team. See the documentation

polling
New Channel Message

Emit new event when a new message is posted in a channel. See the documentation

polling
New Chat

Emit new event when a new chat is created. See the documentation

polling
New Chat Message

Emit new event when a new message is received in a chat. See the documentation

polling
New Team

Emit new event when a new team is joined by the authenticated user. See the documentation

polling
New Team Member

Emit new event when a new member is added to a team. See the documentation

polling

Actions (12)

Create Channel

Create a new channel in Microsoft Teams. See the docs here

Get Chat Message

Get a specific message from a chat. See the documentation

Get Current User

Returns the authenticated Microsoft Teams user's ID, display name, email, and principal name via Microsoft Graph. Call this first when the user says 'my channels', 'my chats', or needs identity context. Use the returned id to identify the sender in **Send Channel Message** or **Send Chat Message** results. See the documentation.

List Channel Messages

Lists messages in a Microsoft Teams channel. See the documentation

List Channels

Lists all channels in a Microsoft Team. See the docs here

List Chats

Lists all chat conversations for the authenticated user. See the documentation

List Messages in Chat

Get the list of messages in a chat. See the documentation

List Shifts

Get the list of shift instances for a team. See the documentation

List Teams

Lists all teams the authenticated user has joined. See the documentation

Search Messages

Search for email or chat messages. See the documentation

Send Channel Message

Send a message to a team's channel. Optionally include inline images via hostedContents. See the documentation

Send Chat Message

Send a message to a team's chat. Optionally include inline images via hostedContents. See the docs here

Integration Features

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

Capability Examples

Mailgun trigger → Microsoft Teams action

Catalog example
MailgunMailgun

New Bounce (Instant)

Microsoft TeamsMicrosoft Teams

Create Channel

Microsoft Teams trigger → Mailgun action

Reverse direction
Microsoft TeamsMicrosoft Teams

New Channel

MailgunMailgun

Create Mailing List Member

How It Works

1

Connect Apps

Authenticate your Mailgun and Microsoft Teams accounts

2

Describe the Job

Say what to read from Mailgun and what to do in Microsoft Teams

3

Choose an Action

Select the documented Microsoft Teams 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 12 documented Microsoft Teams 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 Microsoft Teams actions it needs.

Your Own Accounts

You connect your own Mailgun and Microsoft Teams accounts. App connections need a paid plan.

Execution Review

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

Microsoft Teams logoMailgun logo

Reverse Integration Available

Also connect Microsoft Teams to Mailgun for bidirectional automation

View Integration
Mailgun logo

All Mailgun Integrations

Explore all available Mailgun connections

View All Integrations
Microsoft Teams logo

All Microsoft Teams Integrations

Explore all available Microsoft Teams connections

View All Integrations

Ready to Connect Mailgun & Microsoft Teams?

Build this agent in Mazaal AI and test it on your ownMailgun and Microsoft Teams data.

Start building

Rather not build it yourself? We set up one Mailgun to Microsoft Teams 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