Integrate Mailgun

Are you looking to integrate a Mailgun account with Outbound Automation by boberdoo? You’ve come to the right place. Mailgun is one of the most user-friendly ESPs on the market and it even offers a free usage tier. Follow the steps below to properly configure and integrate your Mailgun account with Outbound Automation.

Step 1: Create a Free Mailgun Account

If you already have a Mailgun account, skip to step 2. If you’d like to set up a new Mailgun account, click the link above. To build an account simply fill in your name and contact info and you’re good to go. Mailgun’s free version gives you 10,000 free email sends/month, but limits you to just 300 sends/day. Optionally, you can enter your billing info as well, which keeps you from having your account blocked from going over the free monthly limit, as well as granting you log retention and custom domains.

Step 2: Specify Your Sending Domain

Once you submit your information, you’ll come to this page:


To send using Mailgun’s free sandbox server, click Continue To Your Control Panel. The free sandbox server is great for testing emails, but limits you to sending to a maximum of 5 verified email addresses, making this option useless for marketing emails. In order to send marketing emails, you will need to verify your sending domain. To do so, click the Domains tab and add your domain. From here, Mailgun will give you instructions on how to verify your sending domain by adding the necessary TXT records through your domain host. Once complete, you will be able to send marketing emails through your verified domain.


Step 3: Enable Click and Open Tracking

In the navigation bar at the top of your system, click Tracking. Next, scroll the the bottom of the page and select Yes for both tracking clicks and opens.


Step 4: Set Event Webhooks

Next, you need to enable Mailgun’s event webhooks to relay the correct information to Outbound Automation. Select Webhooks from the navigation bar. Next, from the dropdown option on the right, select either the Mailgun sanbox server to send from or your domain, as configured in step 2. In the table, you will see 7 event options. Click the Edit URL tool and enter the following URL in the box:

Repeat this step for all 7 event options. Once completed, your Webhooks page should look exactly like the image below.


Step 5: Copy Your Mailgun Credentials

Next you need to copy your Mailgun account’s API Base URL and API Key. From the top navigation bar, click Domains. Next, click the name of the domain you wish to send from. This will be either Mailgun’s free sandbox domain or a domain you added in step 2.


Step 6: Add Your Mailgun Account to Outbound Automation

Once you have your API Base URL and API key copied, head to Outbound Automation in your boberdoo system, and click on the Setup tab.

From here, locate the Email Service Providers box and click the green Add New ESP button. Select Mailgun from the Email Provider dropdown and choose a name for your ESP. This name will be used for internal reference and organization only. Finally copy your API Base URL and API Key into the respective boxes.

Click Save ESP Account and you’re all set! Your Mailgun account will now appear both in your Setup dashboard and as a sending option when building a campaign.