?>

ActiveCampaign + Mailgun Integrations

Appy Pie Connect allows you to automate multiple workflows between ActiveCampaign and Mailgun

  • No code
  • No Credit Card
  • Lightning Fast Setup
About ActiveCampaign

ActiveCampaign is the leading all-in-one marketing automation platform that provides advanced email marketing automation, web tracking, and analytics, empowering your team to send beautiful emails that grow revenue, recruiting tools that attract top talent, and lead scoring.

About Mailgun

Mailgun is the email automation engine trusted by over millions of websites and application developers for sending, receiving and tracking emails.

Mailgun Integrations
Mailgun Alternatives

Looking for the Mailgun Alternatives? Here is the list of top Mailgun Alternatives

  • MailerLite MailerLite
  • MailChimp MailChimp

Best ways to Integrate ActiveCampaign + Mailgun

  • ActiveCampaign ActiveCampaign

    Mailgun + ActiveCampaign

    Add Contact Note in ActiveCampaign when New Unsubscriber is created in Mailgun Read More...
    Close
    When this happens...
    ActiveCampaign New Unsubscriber
     
    Then do this...
    ActiveCampaign Add Contact Note
  • ActiveCampaign ActiveCampaign

    Mailgun + ActiveCampaign

    Create/Update Contact to ActiveCampaign from New Unsubscriber in Mailgun Read More...
    Close
    When this happens...
    ActiveCampaign New Unsubscriber
     
    Then do this...
    ActiveCampaign Create/Update Contact
  • ActiveCampaign ActiveCampaign

    Mailgun + ActiveCampaign

    Update Contact in ActiveCampaign when New Unsubscriber is created in Mailgun Read More...
    Close
    When this happens...
    ActiveCampaign New Unsubscriber
     
    Then do this...
    ActiveCampaign Update Contact
  • ActiveCampaign ActiveCampaign

    Mailgun + ActiveCampaign

    Add Contact Note in ActiveCampaign when New Subscriber is created in Mailgun Read More...
    Close
    When this happens...
    ActiveCampaign New Subscriber
     
    Then do this...
    ActiveCampaign Add Contact Note
  • ActiveCampaign ActiveCampaign

    Mailgun + ActiveCampaign

    Create/Update Contact to ActiveCampaign from New Subscriber in Mailgun Read More...
    Close
    When this happens...
    ActiveCampaign New Subscriber
     
    Then do this...
    ActiveCampaign Create/Update Contact
  • ActiveCampaign {{item.actionAppName}}

    ActiveCampaign + {{item.actionAppName}}

    {{item.message}} Read More...
    Close
    When this happens...
    {{item.triggerAppName}} {{item.triggerTitle}}
     
    Then do this...
    {{item.actionAppName}} {{item.actionTitle}}
Connect ActiveCampaign + Mailgun in easier way

It's easy to connect ActiveCampaign + Mailgun without coding knowledge. Start creating your own business flow.

    Triggers
  • New Contact Note

    Triggers when a new contact note is added.

  • New Updated Account

    Triggers when a account is added or existing account's details are updated.

  • New or Updated Contact

    Triggers when a new contact is added or existing contact's details are updated.

  • New Subscriber

    Triggers whenever a new subscriber is added.

  • New Unsubscriber

    Triggers when a current subscriber unsubscribed.

    Actions
  • Add Contact Note

    Adds new contact note.

  • Create/Update Contact

    Creates a new contact.

  • Update Contact

    Update an existing contact.

How ActiveCampaign & Mailgun Integrations Work

  1. Step 1: Choose ActiveCampaign as a trigger app and authenticate it on Appy Pie Connect.

    (30 seconds)

  2. Step 2: Select "Trigger" from the Triggers List.

    (10 seconds)

  3. Step 3: Pick Mailgun as an action app and authenticate.

    (30 seconds)

  4. Step 4: Select a resulting action from the Action List.

    (10 seconds)

  5. Step 5: Select the data you want to send from ActiveCampaign to Mailgun.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of ActiveCampaign and Mailgun

Welcome to the Mailgun Email Marketing Tutorials. In this tutorial, we are going to learn about ActiveCampaign and Mailgun integration.

ActiveCampaign is an online marketing service for Email Marketing, mobile apps, sales engagement, analytics, social media marketing and website tracking. It helps in automating email campaigns, customer lists, mass emails, form cplection and more. ActiveCampaign integrates with other email marketing services like Mailgun, GetResponse, MadMimi, Salesforce and more. ActiveCampaign also provides free and paid plans.

Mailgun is a cloud-based email API service that is used to send and receive email. It allows sending emails via HTTP requests and offers a range of features like tracking, tagging and webhooks. It is considered as one of the most popular API for sending emails.

Let’s get started by understanding how ActiveCampaign and Mailgun can be integrated for sending emails by creating a simple example. We will create a list in Mailgun API called “Email List” and an API key for authenticating the request from the ActiveCampaign app. The API key will be generated using the API Key Management option under the ‘Settings’ menu in ActiveCampaign app.

After generating the API key, we will use the API key to create a new list in Mailgun. Make sure you use HTTP method POST to create a list in Mailgun using the below code:

#!/bin/bash

echo “CREATE LIST if NOT EXIST” > /opt/mailgun/api_key/pa_email_list.txt

curl -X POST –user $MAILGUN_APIKEY:$MAILGUN_APIKEY https://api.mailgun.net/v3/pa_email_list/$MAILGUN_LIST_NAME

–data ‘{“name”:”$MAILGUN_LIST_NAME”}’ >> /opt/mailgun/api_key/pa_email_list.txt

The above script creates a list called “Email List” in Mailgun using the API key provided by ActiveCampaign app. Next, we need to add all our subscribers who want to receive emails from ActiveCampaign to this newly created list in Mailgun as shown below with the help of curl command:

#!/bin/bash

echo “ADD USER TO LIST if NOT EXIST $MAILGUN_LIST_NAME” > /opt/mailgun/api_key/pa_email_list.txt

curl -X POST -H “Content-Type. application/json” -u $MAILGUN_APIKEY:$MAILGUN_APIKEY https://api.mailgun.net/v3/pa_email_list/$MAILGUN_LIST_NAME -d ‘{“email” . “$EMAILADDRESS”}’ >> /opt/mailgun/api_key/pa_email_list.txt

Once all the subscribers are added to the list, we are ready to start sending emails from ActiveCampaign app using the fplowing code:

#!/bin/bash

echo “SEND EMAIL if NOT EXIST $MAILGUN_LIST_NAME” > /opt/mailgun/api_key/pa_email_list.txt

curl -X POST -H “Content-Type. application/json” -u $MAILGUN_APIKEY:$MAILGUN_APIKEY https://api.mailgun.net/v3/pa_email_list/$MAILGUN_LIST_NAME -d ‘{“domain” . “[email protected]”, “to” . [ “[email protected], [email protected]” ] , “subject” . “This is a test subject”, “from” . [ “[email protected]” ] , “text” . { “id” . “updates-1″ , “content” . { “title” . “Test Title” , “body” . “Test Content” } } }' >> /opt/mailgun/api_key/pa_email_list.txt

Once you have finished configuring your settings, you can start sending email campaigns by adding recipients to your list and executing the above script. You can create multiple lists if needed and use a different API key for each list as shown below:

#!/bin/bash

echo “CREATE LIST if NOT EXIST pa-emails-1″ > /opt/mailgun/api_key/pa-emails-1/.txt

curl -X POST –user $MAILGUN_APIKEY:$MAILGUN_APIKEY https://api.mailgun.net/v3/pa-emails-1/$MAILGUN_LIST_NAME –data ‘{“name”:”$MAILGUN_LIST_NAME”}’ >> /opt/mailgun/api_key/pa-emails-1/.txt echo “ADD USER TO LIST if NOT EXIST pa-emails-1″ > /opt/mailgun/api_key/pa-emails-1/.txt curl -X POST -H “Content-Type. application/json” -u $MAILGUN_APIKEY:$MAILGUN_APIKEY https://api.mailgun.net/v3/pa-emails-1/$MAILGUN_LIST_NAME -d ‘{“email” . “$EMAILADDRESS”}’ >> /opt/mailgun/api_key/pa-emails-1/.txt script=’#!/bin/bash echo “SEND EMAIL if NOT EXIST pa-emails-1″ > /opt/mailgun/api_key/$MAILGUN_LIST_NAME echo “ADD USER TO LIST if NOT EXIST pa-emails-1″ > /opt/mailgun/api_key/$MAILGUN_LIST_NAME curl -X POST -H “Content-Type. application/json” -u $MAILGUN_APIKEY:$MAILGUN_APIKEY https://api.mailgun.net/v3/$MAILGUN_LIST_NAME -d ‘{“domain” . “[email protected]”, “to” . [ “[email protected], [email protected]” ] , “subject” . “This is a test subject”, “from” . [ “[email protected]” ] , “text” . { “id” . “updates-1″ , “content” . { “title” . “Test Title” , “body” . “Test Content” } } }' >> /opt/mailgun/$MAILGUN_LIST_NAME echo "PUT MESSAGE if NOT EXIST message-$RECIPIENT" > /opt/mailgun/$MAILGUN_LIST_NAME curl -X POST -H "Content-Type. application/json" -u $MAILGUN_APIKEY:$MAILGUN_APIKEY https://api.mailgun.net/$MAILGUN_LISTED/.messages/$RECIPIENT --data '{ "from". "[email protected]", "subject". "Assignments", "html". "<html><body>Hello!<p><a rel="nofollow" href="https://www.example.com">Example</a></p> <p>Your assignments for today is attached.</p></body></html>" }' >> /opt/mailgun/$MAILGUN_LISTED/.messages/$RECIPIENT echo #If you want to add attachments then you can use

The process to integrate ActiveCampaign and Mailgun may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.