Top companies trust Zapier to automate work that solves their unique business problems—no coding required.
How Zapier works
Zapier makes it easy to integrate HubSpot with Mailgun - no code necessary. See how you can get setup in minutes.
100%
Help
HubSpot
HubSpot
1. Choose trigger event
Mailgun
Mailgun
2. Choose action
1. Select the event
Setup
Test
HubSpot
Choose a trigger event
Choose a trigger
A trigger is the event that starts your Zap—like a "New Company" from HubSpot.
Add your action
An action happens after the trigger—such as "Bulk Email Validation" in Mailgun.
You’re connected!
Zapier seamlessly connects HubSpot and Mailgun, automating your workflow.
Supported triggers and actions
Zapier helps you create workflows that connect your apps to automate repetitive tasks. A trigger is an event that starts a workflow, and an action is an event a Zap performs.
Halt my task if contact is already a member of the list
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Create Company
Creates a Company in HubSpot.
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Create Associations
Creates associations between objects.
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Note
Halt task if any associations error occurred
Engagement Type
Required
Assigned To
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Note
Social Media Channel
Required
Message Content
Required
When
Save as draft
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Note
Note
Name
Required
Company
Contact
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Delete CRM Object
Deletes a CRM object from HubSpot
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Company ID
Required
Note
Additional properties to retrieve
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Type of Custom Object
Required
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Note
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Product ID
Required
Note
Additional properties to retrieve
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Create Line_item
Creates a Line_item in HubSpot.
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Note
Contact Email Address
Required
Event ID
Required
Contact Value
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Get CRM Object
Gets a CRM object from HubSpot by ID
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Note
List Name
Required
Contact
Required
Halt my task if contact wasn't a member of the list
Required
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Create Ticket
Creates a Ticket in HubSpot.
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Update Contact
Update a Contact in HubSpot.
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Update Line_item
Update a Line_item in HubSpot.
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Update Product
Update a Product in HubSpot.
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Type of Custom Object
Required
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Folder
Required
Filename
Required
Access level
Required
File
Required
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Api_docs_info
Stop on error
Required
HTTP Method
Required
URL
Required
Query string parameters
Additional request headers
Body
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Note
Name
Required
Action
This is an event a Zap performs.
Search
Find existing data in your app
Note
Additional properties to retrieve
Action
This is an event a Zap performs.
Search
Find existing data in your app
Note
Name
Required
Action
This is an event a Zap performs.
Search
Find existing data in your app
Find Associations
Find associations between objects.
Action
This is an event a Zap performs.
Search
Find existing data in your app
Object Type
Required
Pipeline Id
Required
Stage Id
Required
Action
This is an event a Zap performs.
Search
Find existing data in your app
Note
Additional properties to retrieve
Action
This is an event a Zap performs.
Search
Find existing data in your app
Note
Additional properties to retrieve
Action
This is an event a Zap performs.
Search
Find existing data in your app
Note
Additional properties to retrieve
Action
This is an event a Zap performs.
Search or write
Find existing data in your app, or create a new record if no data is found
Type of Custom Object
Required
Action
This is an event a Zap performs.
Search or write
Find existing data in your app, or create a new record if no data is found
Note
Additional properties to retrieve
Action
This is an event a Zap performs.
Search or write
Find existing data in your app, or create a new record if no data is found
Note
Additional properties to retrieve
Action
This is an event a Zap performs.
Search or write
Find existing data in your app, or create a new record if no data is found
New Log Data
Triggers when new log entries are found in Mailgun. Because this trigger uses polling, multiple log entries may be returned at once during each polling interval.
Triggers when an incoming email matches a Mailgun route. Automatically creates a route in Mailgun to forward emails to Zapier. Use Zapier Filters and Paths to process emails based on sender, subject, or content.
Create a new record or update an existing record in your app.
List
Required
Address
Required
Update
Required
Member Name
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
Stop on error
Required
HTTP Method
Required
URL
Required
Query string parameters
Additional request headers
Body
Action
This is an event a Zap performs.
Write
Create a new record or update an existing record in your app.
For AI agents & developers
Use HubSpot and Mailgun with AI agents and code
Beyond Zap workflows. Call HubSpot and Mailgun actions directly from your AI client or your codebase, using the same 9,000+ app integrations Zapier already runs.
No code
Connect via Zapier MCP
Expose HubSpot and Mailgun actions as tools in any MCP client. Authenticate once, then call them in natural language.
Example actions on this page
Update Contact Subscription Preferences
Bulk Email Validation
Works with
Claude · ChatGPT · Cursor · any MCP-compatible client
There is no Python package yet. SDK is TypeScript-only (@zapier/zapier-sdk). The MCP server URL is personal to your account; get it at zapier.com/mcp.
Zapier is the automation platform of choice for 87% of Forbes Cloud 100 companies in 2023
93%
Customers who say using Zapier has made them better at their job
25m
Customers have created over 25 million Zaps on the platform
6 mins
The average user takes less than 6 minutes to set up a Zap
Connect HubSpot and Mailgun to integrate crucial parts of your business
With Zapier, you can integrate everything from basic data entry to end-to-end processes. Here are some of the business-critical workflows that people automate with Zapier.
Automate your lead management and improve conversions
With Zapier, you can automate every part of your lead funnel and give yourself the best chance at converting leads. Automate everything from lead capture to outreach to reporting—and close more deals as a result.
Create more impactful campaigns with automation
Measuring campaign performance across platforms can get chaotic. Plus, digging up the right metrics costs you precious time and effort. With Zapier, you can create a centralized view of your performance, skillfully manage your lists, and ensure your campaigns drive ROI across the business.
Provide world-class support with a little help from automation
Support reps can't be productive when they have to track down crucial information for every incident or ticket. With Zapier, you can automatically send your reps the context they need to resolve tickets quickly and create a seamless customer experience.
Automate your way to actionable, up-to-date data
The days of manually exporting and importing data are over. With Zapier, you can send data where it needs to go, in the format you need it—so you can centralize your data and unlock more insights.
Resolve incidents faster with automation
Your technical support team wants to focus on tech tickets rather than admin work. With Zapier, you can automate everything from ticket creation to routing to inter-team communication—eliminating friction from incident management and increasing speed to resolution.
Learn how to automate HubSpot on the Zapier blog
Learn how to automate Mailgun on the Zapier blog
Make work flow with AI
Level up your HubSpot to Mailgun integration with AI. Extract, summarize, and transform your integration data with leading AI models like OpenAI, Anthropic, and more.
Frequently Asked Questions about HubSpot + Mailgun integrations
New to automation with Zapier? You're not alone. Here are some answers to common questions about how Zapier works with HubSpot and Mailgun
How can I integrate HubSpot with Mailgun?
You can integrate HubSpot with Mailgun by setting up automation that uses triggers and actions. For instance, you can create a trigger in HubSpot for when a new contact is added, which then sends an email through Mailgun. Our automated workflows make this process seamless.
What type of data can be transferred between HubSpot and Mailgun?
Data types such as contacts, emails, and custom fields can be transferred between HubSpot and Mailgun. When a trigger is activated in HubSpot, like a form submission, it can initiate actions in Mailgun to send personalized emails.
Do I need any coding skills to set up the integration?
No coding skills are required. Our platform provides an intuitive interface where you can easily drag and drop triggers and actions to create the integration between HubSpot and Mailgun.
Are there limits on the number of emails I can send from Mailgun using this integration?
The limits on the number of emails depend on your Mailgun plan. However, our integration facilitates efficient email delivery according to the criteria specified in your triggers.
Can I schedule email sending from HubSpot using this integration?
Yes, you can schedule email sending by setting specific triggers within HubSpot. For example, when a lead reaches a certain score or status, you can automate scheduled emails via Mailgun as an action.
How secure is the data transfer between HubSpot and Mailgun?
Data transfer between HubSpot and Mailgun through our platform is secure. We employ robust encryption protocols to ensure that all triggers and actions are executed with data integrity maintained.
What happens if an action fails during the workflow process?
If an action fails during your workflow process, our system will notify you immediately with error details so you can address the issue promptly. You have options for automatic retries depending on how you've configured your workflow settings.
About HubSpot
HubSpot is your all-in-one stop for all of your marketing software needs.
App Builder, CRM (Customer Relationship Management), Forms & Surveys, Zapier
About Mailgun
Mailgun is a tool with powerful APIs that allow you to send, receive, track and store email effortlessly. Except, with Zapier you don't have to write any code!