How the HubSpot Mailgun integration works

Send automated transactional emails from HubSpot with attachments using the HubSpot with Mailgun integration - learn how to get setup and started.

Setup

  1. Create a Mailgun Account
  2. Setup domains
  3. Optionally setup templates, although HTML can be set in the action
  4. Retrieve your Mailgun API Key
    1. if you navigate to the following URL, it should take you straight to the API's page, where you can create an API Key, provided you have the appropriate level of access within Mailgun: API and security
  5. Add the Mailgun API Key under MyGlue App setting
    1. Then copy your API Key and navigate to the following link to apply it to Integration Glue: MyGlue Configure MailGun

 

Create Workflow

In HubSpot

  1. Create or update an existing Workflow
  2. Add Triggers
  3. Add MailGun Attachment Integration App Custom Action (either select from Mailgun Template or create new template)
    1. Select your Domain
    2. Enter email details (note if including HTML body (note you may want to build the template elsewhere and then copy the code into this field)
    3. If you want to attach a file enter your file ID/data point for file ID 
    4. Set association rules

Support / Knowledge Base