AppsPricingBlogTry it
Mailgun logo
Salesforce logo

Connect Mailgun to Salesforce

Use 11 documented Mailgun triggers to run 24 documented Salesforce actions.

11 source triggers
24 target actions
Reverse direction supported

Why Connect Mailgun & Salesforce?

Start with a Mailgun event

Choose from 11 documented triggers, including New Bounce (Instant), New Click (Instant), New Complaint (Instant).

Run a Salesforce action

Send the event into one of 24 documented actions, such as Add Contact to Campaign, Add Lead to Campaign, Convert SOAP XML Object to JSON.

Map and review the workflow

Choose the fields and conditions for the workflow, then test the result before activation.

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

Salesforce logo

Salesforce

Triggers (10)

Case Updated (Instant, of Selectable Type)

Emit new event when a case is updated. See the documentation

webhook
Email Template Updated (Instant, of Selectable Type)

Emit new event when an email template is updated. See the documentation

webhook
Knowledge Article Updated (Instant, of Selectable Type)

Emit new event when a knowledge article is updated. See the documentation

webhook
New Case (Instant, of Selectable Type)

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

webhook
New Deleted Record (Instant, of Selectable Type)

Emit new event when a record of the selected object type is deleted. See the documentation

webhook
New Email Template (Instant, of Selectable Type)

Emit new event when an email template is created. See the documentation

webhook
New Knowledge Article (Instant, of Selectable Type)

Emit new event when a knowledge article is created. See the documentation

webhook
New Outbound Message (Instant)

Emit new event when a new outbound message is received in Salesforce.

webhook
New Record (Instant, of Selectable Type)

Emit new event when a record of the selected object type is created. See the documentation

webhook
New Updated Record (Instant, of Selectable Type)

Emit new event when a record of the selected type is updated. See the documentation

webhook

Actions (24)

Add Contact to Campaign

Adds an existing contact to an existing campaign. See the documentation

Add Lead to Campaign

Adds an existing lead to an existing campaign. See the documentation

Convert SOAP XML Object to JSON

Converts a SOAP XML Object received from Salesforce to JSON

Create Account

Creates a Salesforce account. See the documentation

Create Accounts (Batch)

Create multiple Accounts in Salesforce using Bulk API 2.0. See the documentation

Create Attachment

Creates an Attachment on a parent object. See the documentation

Create Campaign

Creates a marketing campaign. See the documentation

Create Case

Creates a Case, which represents a customer issue or problem. See the documentation

Create Case Comment

Creates a Case Comment on a selected Case. See the documentation

Create Contact

Creates a contact. See the documentation

Create Content Note

Creates a content note. See the documentation and Set Up Notes.

Create Event

Creates an event. See the documentation

Create Lead

Creates a lead. See the documentation

Create Note

Creates a note. See the documentation

Create Opportunities (Batch)

Create multiple Opportunities in Salesforce using Bulk API 2.0. See the documentation

Create Opportunity

Creates an opportunity. See the documentation

Create Record

Create a record of a given object. See the documentation

Create Record

Create a new Salesforce record of any object type. Use **Describe Object** first if you're unsure what fields are available or required. For picklist fields, use the API value from **Describe Object**, not the display label. **Common required fields:** - Account: Name - Contact: LastName - Lead: LastName, Company - Opportunity: Name, StageName, CloseDate - Case: Subject - Task: Subject - Event: Subject, StartDateTime, EndDateTime To add a Contact/Lead to a Campaign, create a CampaignMember: {"CampaignId": "701xxx", "ContactId": "003xxx"} or {"CampaignId": "701xxx", "LeadId": "00Qxxx"}.

Create Task

Creates a task. See the documentation

Create User

Creates a Salesforce user. See the documentation

Delete Note Or Content Note

Delete a note or content note from a Salesforce record. See the documentation

Delete Opportunity

Deletes an opportunity. See the documentation

Delete Record

Permanently deletes a Salesforce record (moves to Recycle Bin for 15 days). Use **SOQL Query** to find the record ID if you only have the record name.

Delete Record

Deletes an existing record in an object. See the documentation

Integration Features

11 documented Mailgun triggers
24 documented Salesforce actions
Configurable field mapping
Conditional workflow steps
Execution monitoring
A supported Salesforce to Mailgun direction

Capability Examples

Mailgun trigger → Salesforce action

Catalog example
MailgunMailgun

New Bounce (Instant)

SalesforceSalesforce

Add Contact to Campaign

Salesforce trigger → Mailgun action

Reverse direction
SalesforceSalesforce

Case Updated (Instant, of Selectable Type)

MailgunMailgun

Create Mailing List Member

How It Works

1

Connect Apps

Authenticate your Mailgun and Salesforce accounts

2

Choose a Trigger

Select a documented Mailgun event

3

Choose an Action

Select the documented Salesforce operation to run

Test and Review

Verify field mapping and provider responses before activation

Frequently Asked Questions

Integration Benefits

Trigger-driven Workflows

Start the supported direction from one of 11 documented Mailgun triggers.

Automated Actions

Run one of 24 documented Salesforce actions after the selected trigger fires.

Provider Authentication

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

Guided Configuration

Select a documented trigger, choose a target action, and map the fields required by the workflow.

Field Mapping

Map the fields exposed by the selected trigger and action, then review the required provider inputs.

Execution Review

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

Salesforce logoMailgun logo

Reverse Integration Available

Also connect Salesforce to Mailgun for bidirectional automation

View Integration
Mailgun logo

All Mailgun Integrations

Explore all available Mailgun connections

View All Integrations
Salesforce logo

All Salesforce Integrations

Explore all available Salesforce connections

View All Integrations

Ready to Connect Mailgun & Salesforce?

Build this supported workflow in Mazaal AI and test it with your own provider accounts.

Get Started Free