Mailgun provides powerful APIs that you can use to send, receive, and track emails.


You can integrate Mailgun with Blueshift to send emails to your customers as a part of a campaign journey. With Mailgun integration, we can track the following: 

  • Sends
  • Impressions
  • Unique impressions
  • Clicks
  • Unique clicks
  • Visits
  • Orders
  • Activations
  • Delivered (sent and not bounced)
  • Revenue
  • Bounces
  • Spam reports
  • Unsubscribes

Set up integration

There are two steps to Mailgun integration with Blueshift:

  • Get the Mailgun API key
  • Add Mailgun adapter in Blueshift

Get the Mailgun API key

To get the API key, first add your sender domain in the Mailgun account and then get your account's API key. If you already have the API key, you can directly proceed to the step where you add the Mailgun adapter in Blueshift. 

Add your sending domain in Mailgun

To add a sender domain, complete the following steps:

  1. In your Mailgun account, click Domains under Sending on the left navigation panel.


  2. On the domains page, click Add New Domain
  3. On the add your domain page, specify the sender sub-domain in the Domain name field and then click Add Domain. There are other options on this page that you can use to configure your setup. For more information, see this article on Mailgun documentation.
  4. The next page provides the options that you need to update the DNS entries with your DNS provider, and the option to verify your sub-domain with Mailgun. Ensure that you perform the steps provided in this article of the Mailgun documentation to update the DNS entries and verify your sub-domain.  

Get the API key

If the sending domain is set up and verified, you can get the API key of your Mailgun account. The API keys are available under the settings on the left navigation panel of the Mailgun account. 

To see the API keys, click on the eye icon mailgun_eye.png.


Add the Mailgun adapter in Blueshift

After you have the Mailgun API key ready, complete the following steps to add the Mailgun adapter in Blueshift.  

  1. Sign in to the Blueshift app, and click Apps in the left navigation menu.
  2. Go to All Apps, search for, and select Mailgun.
  3. You can also go to Email Apps and select Mailgun.
  4. Click Configure to view all the configured adapters.
  5. Click +ADAPTER to add an adapter.
  6. Add a Name for the adapter.  If you have multiple adapters, the adapter name helps you to identify the integration.
  7. Provide the following details for integration:


    Alias name

    Specify an alias for the adapter. This is for identification purpose only. 

    API Key

    Provide the API key that you get from your Mailgun account. For more information, see get the API key

    Sending domain

    Specify the sending domain that you add in Blueshift. If you have not added a sending domain, see add your sending domain in Mailgun.

    From Name

    Specify a name that is displayed on the From field of an email. You can override this value in the trigger that you create for a campaign. 

    From Address

    Specify the sender's email address. You can override this value in the trigger that you create for a campaign. 

    Ensure that domain that you use for this address is the same as the domain that you add in Mailgun.
    For example, if you add in Mailgun, the From Address value should be where someone can be anyone. 

    Reply To Address

    Specify the email address to which a user can reply. 


    Specify the email addresses of people who should receive the copy of the email that your customers receive.

    Use comma to provide multiple email addresses. For example:,,

    By default, our platform sends a copy of the email to the email addresses that you specify. If you want to include the email addresses in the BCC field of the email, drop us an email on

    Whitelabel host name (CNAME)

    Specify the CNAME value of your sending domain if you want to use Mailgun's click tracking. We do not use Mailgun's tracking data in our platform.  

    You can find the CNAME value in the domain settings. To access domain settings in your Mailgun account:

    1. Click Sending > Domains on the left panel. 
    2. Click on the domain in the right panel. 
    3. On the left panel, click Domain settings
    4. In the Domain settings, select the DNS records tab. The CNAME value is available under this tab. 

    This setting is optional and you can leave this field blank.

  8. In addition, you can bypass Mailgun's suppression list. 
  9. Click Save to add the adapter.
Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.