MESA Docs
MESA Homepage
  • Welcome to MESA
    • Installing MESA
    • Dashboard
    • Core Concepts
    • Getting Help
  • Templates
    • Template Library
    • Installing & Editing
  • Workflow Builder
    • Triggers
    • Actions
    • Fields
      • Variables
      • Formatting Variables
      • Liquid Templating
    • Testing
  • Workflow Activity
    • Tasks
      • Troubleshooting
      • Replay
    • Logs
    • Time Travel
  • Best Practices
    • Set Titles & Descriptions
    • Track Time Saved
    • Enable Failure Notifications
    • Avoid Infinite Loops
  • Going Further
    • Plans & Billing
    • Notifications
    • Credentials
    • Understanding the Queue
    • Export & Import Workflows
    • Platform Thresholds & Limits
  • Built-in Tools
    • Activity Log
    • AI
    • API
    • Approval
    • MCP
    • Custom Code
      • Libraries
        • MESA SDK
        • Filter
        • Loop
        • Transform
        • oAuth
        • Shopify
        • ShopifyGraphql
      • FAQ
    • Data
    • Delay
    • Email
    • Filter
    • Form
      • Configure
      • Going Further
      • Technical Notes
    • FTP
    • Image
    • Loop
    • Package Tracking
    • Paths
    • Schedule
    • Scraper
    • SMS
    • Transform
    • Virtual Output
    • Weather
    • Web Request
    • Webhook
  • Apps
    • Airtable
    • Amazon S3
    • Asana
    • Blog Studio
    • ChannelApe
    • Claude
    • ChatGPT
    • Dall-E 2
    • Delighted
    • Digital Humani
    • Discord
    • DocuSign
    • Dropbox
    • Etsy
    • Facebook
    • Fera.ai
    • Gatsby
    • Gmail
      • Send Email
    • Google Analytics 4
    • Google Analytics UA
    • Google Calendar
    • Google Drive
    • Google Forms
    • Google Sheets
      • Add Row
      • Query Rows
      • Update Row
      • Row Created
      • Row Updated (Advanced)
      • Creating New Spreadsheets
      • Technical Notes
    • Gorgias
    • Govalo
    • Help Scout
    • Hubspot
    • Infinite Options
    • Intercom
    • IPDetective
    • Judge.me
    • Katana
    • Klaviyo
      • API Deprecation
    • Loop Returns
    • Loyalty Lion
    • Mailchimp
    • Mailgun
    • Mandrill
    • Mantle
    • Notion
    • Odoo
    • Omnisend
    • Page Studio
    • Pinterest
    • Printful
    • PrintNode
    • QuickBooks
    • Rebuy
    • Recharge
    • Remove.bg
    • Returnly
    • Rivo
    • Salesforce
    • Segment
    • Sendlane
    • Shippo
    • ShipStation
    • Shopify
      • Technical Notes
        • Configuring Your Payload
        • Modifying and Filtering Get Lists
        • Parameters
        • Error Codes
        • Accuracy of orders_count Variable
        • Accuracy of Count Products Action
        • Using the Gift Cards API
        • How to Find a Specific Record in the Testing Interface
        • Order, Customer, and Product Updated Trigger Frequency
    • Shopify Flow
    • Shopify Plus
    • Shopify Retail POS
    • Skio Subscriptions
    • Slack
    • Smartrr
    • Smile.io
    • Square
      • Updating Inventory
      • Frequently Asked Questions
    • Stamped.io
    • Stripe
    • Thanks.io
    • TikTok
    • Tracktor
    • Twilio
    • Uploadery
    • Wonderment
    • Xero
    • Yotpo
    • Yotpo Loyalty
  • For developers
    • Admin API
    • Command Line Interface
    • Embedding templates
  • Frequently asked questions
    • Why isn't the log search returning logs with the search I entered?
    • Is it possible to handle errors or retry steps?
    • How do I handle a failed task?
    • Does MESA auto-save workflows?
    • Can I Use Apps That Don't Have a MESA Connector?
    • Why is my workflow action adding the same data each time it occurs?
    • How do I cancel automations that are already in progress?
    • How do I cancel my MESA subscription or 7-day trial?
    • Can you import code from npm in custom code?
    • Do you have a Slack Community?
Powered by GitBook
On this page
  • Authentication
  • Configure
  • Technical Notes

Was this helpful?

  1. Apps

Mailgun

PreviousMailchimpNextMandrill

Last updated 1 month ago

Was this helpful?

Authentication

When you're setting up your first workflow with Mailgun, you'll need to add your API key so that Mailgun is a connected app within MESA.

Next, click on the eye icon next to Private API key. Copy and paste it in the API Key field.

Once the API Key is entered, click on Add Credential to connect MESA with Mailgun. Lastly, click on the Done button and hit the Save button at the top of or below the workflow to save your changes.

Configure

Select your Domain

🗒️ Note: After saving the workflow for the first time, the domain selected in the Trigger cannot be changed. If you need to change the domain, please create a new workflow.

Once selected and after ensuring that you have selected the correct domain, hit the Save button at the top of or below the workflow to save your changes.

Send Message Action

When adding a Mailgun Send Message action, you will need to fill out some required fields before being able to save your workflow.

Required Fields:

  • From (required): Input an email address for the email's From setting

  • Subject (required): Email's Subject line

  • Message (required): Email's body message. This cannot be used with the Template Variables fields.

More Options variables:

  • Template: You can select any of your existing Mailgun templates to automatically format the emails sent by MESA. To locate your Templates: Mailgun dashboard > Sending (from left hand sidebar) > Templates

  • Template Variables: Variables used in an email template. This cannot be used with the Text field. Continue reading to the next section for more information.

Attachments

You can attach attachments into your email by inputting the URL of the attachment.

Click More Options, scroll down and select the URL attachments variable.

We use the file's type extension to determine the mime type of the file. For instance, if a file ends with .pdf, we will assume the mime type is application/pdf because of the extension. Similarly, if the file ends with .png, we will assume its mime type is image/png. Therefore, it is highly recommended that the attachment URLs end with the file extension.

Adding Template Variables into the Send Message Action

If your Mailgun template utilizes Variables, you can automatically input data into these variables which are included in the Email's Body.

2. Locate the template that you want MESA to use in the Send Message action and then click on it.

3. When viewing the template, find your Variables which would look something like this: {{customer_name}}

4. Back into your MESA workflow's Send Message action in Configure, scroll down and select More Options, locate the Template Variables section, and click on Add Field.

5. A Field name field will then display. Input the name of the Variable. Example: customer_name. Click Save.

6. For the empty field below, you will want to input that variable from your Mailgun template. Example: {{customer_name}}

7. To add more Variables if needed, please repeat steps 4-6.

8. Once you are done, you can save your changes! When an automation runs, your email will automatically contain important information.

Technical Notes

  • Please note that the email message, including attachments, cannot exceed the per-message size limit of 25MB or it may be permanently lost.

From your Mailgun account dashboard, click on your profile from the top right hand corner and then click on .

All Mailgun require you to select a Mailgun Domain that MESA should work with. Click on the Domain drop-down menu and select your domain.

Domain (required): Select a domain that MESA should work with. Review if you are unsure on what to select

To (required): Email address of the recipient(s). You can use commas to separate multiple recipients and can utilize to automatically input the customer's email address

1. To set this up, . Then, click on Sending under Email and then click on Templates.

We do not support sharing URLS from Google Drive or Dropbox at this time or the ability to upload a file directly in MESA. For example, the attachment URL should be publicly available and MESA should be able to directly access the file without downloading it. We recommend uploading the files to a third party service like and then copying the URL from there.

API Keys
Triggers
MESA's Variables feature
login into your Mailgun account
Shopify Files
this section