?>

Webflow + Mailgun Integrations

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

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

Webflow is the easiest and fastest way to build a website in the cloud. Whether you need a quick landing page or a visually stunning portfolio you can launch it in minutes, design it yourself without code, and host it anywhere.

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 Webflow + Mailgun

  • Webflow Gmail

    Mailgun + Gmail

    Create Draft to Gmail from New Unsubscriber in Mailgun Read More...
    Close
    When this happens...
    Webflow New Unsubscriber
     
    Then do this...
    Gmail Create Draft
  • Webflow Gmail

    Mailgun + Gmail

    Send Email in Gmail when New Unsubscriber is created in Mailgun Read More...
    Close
    When this happens...
    Webflow New Unsubscriber
     
    Then do this...
    Gmail Send Email
  • Webflow Gmail

    Mailgun + Gmail

    Create Label to Gmail from New Unsubscriber in Mailgun Read More...
    Close
    When this happens...
    Webflow New Unsubscriber
     
    Then do this...
    Gmail Create Label
  • Webflow Google Sheets

    Mailgun + Google Sheets

    Create Spreadsheet Row to Google Sheets from New Unsubscriber in Mailgun Read More...
    Close
    When this happens...
    Webflow New Unsubscriber
     
    Then do this...
    Google Sheets Create Spreadsheet Row
  • Webflow Google Sheets

    Mailgun + Google Sheets

    Update Spreadsheet Row in Google Sheets when New Unsubscriber is created in Mailgun Read More...
    Close
    When this happens...
    Webflow New Unsubscriber
     
    Then do this...
    Google Sheets Update Spreadsheet Row
  • Webflow {{item.actionAppName}}

    Webflow + {{item.actionAppName}}

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

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

    Triggers
  • New Subscriber

    Triggers whenever a new subscriber is added.

  • New Unsubscriber

    Triggers when a current subscriber unsubscribed.

    Actions
  • Create Item

    Adds a new item to a given collection.

  • Create Live Item

    Adds a new item to a given collection on your published site.

  • Update Item

    Updates an item.

  • Update Live Item

    Updates a live item

How Webflow & Mailgun Integrations Work

  1. Step 1: Choose Webflow 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 Webflow to Mailgun.

    (2 minutes)

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

Integration of Webflow and Mailgun

Webflow?

Webflow is a platform for creating websites. It is a drag and drop website builder, also known as a WYSIWYG. The purpose of this article is to analyze the integration of Webflow and Mailgun. Webflow gives you the liberty to create a site, without the need of dealing with HTML, CSS or any other coding language. It’s a great spution for those that don’t have the funds to pay for a web designer or developer that can help them create a website.

Mailgun?

Mailgun is an email delivery service. It helps companies send transactional emails from their application, without having to maintain a separate server for email hosting. Mailgun claims to have a 99.99% uptime guarantee and it has a free plan for startups. It provides many features such as tracking clicks, bounces, opens, and unsubscribes. Mailgun was acquired by Rackspace in 2014 for $38.5 million dplars. The integration of Webflow and Mailgun will be discussed later on during this article.

Integration of Webflow and Mailgun

In order to integrate Webflow and Mailgun, you have to obtain an API key from Mailgun. This will take you to the dashboard where you will have to copy your domain name, then paste into the fields that appear on the next page. When you click on the “Generate key” button, you will be able to see your key in plain text format. After getting your key, you will be sent back to the previous page where you will have to set your frequency cap in terms of how many emails can be sent per day. You may also enable email authentication in order to prevent spamming problems. After you are done with this step, you will see your key written in plain text again so you can copy it and paste it in the correct place in your Webflow code.

Now that you have gotten your key, you will need to create an instance of Mailgun in your code by pasting in the code below:

One important thing to note about this code is that it is case sensitive, so be sure to copy it exactly as I’ve written it. Some code editors like Sublime Text support autocompletion which is very handy when writing code like this because it will automatically insert what you need after typing out part of the code. One problem I ran into with using Sublime Text was that it would automatically add curly braces (“}”. at the end of each line which is not necessary in this case. To get around this problem I just added 4 spaces at the end of each line before pasting the code into my document. After pasting in the code, you should be able to see “MAILGUN_API_KEY” in the left-hand panel on Webflow. If you do not see this, try refreshing your browser window by hitting CTRL+F5 on Windows or CMD+R on Mac OS X. Once you see this variable, proceed to fill in the blank space with your API key that you got from Mailgun earlier.

After adding your API Key, you will want to go back to Mailgun’s dashboard to get your instance ID by clicking on “Get Instance ID” under “Configuration” then copying the ID that appears on the next page into your code near “MAILGUN_DOMAIN”. The code should now look like this:

Now that you have gotten your instance ID from Mailgun, you can retrieve messages from your inbox via the fplowing code:

Once you press enter on this line of code, you will see a new box pop up with some JSON text in it, but don’t worry if you do not understand this for now because we will be going over how to decode JSON data soon. Now that we have gotten our messages from our inbox we can proceed to sending an email through Mailgun by pasting in the fplowing Javascript code:

This is what we call a function in Javascript and it helps us organize our code by only having one function and calling it multiple times instead of copying and pasting multiple lines of code inside our main HTML page. We know we are ready to call sendMail(. when we see “mailgunSendEmail(…),” and we know we are ready to call getMessageList(. when we see “mailgunGetMessageList(….” Also notice that I am passing in an argument named messageBody which contains our email content. I am doing this because I want to avoid writing all my HTML code inside my mailGun function because I want it to be reusable and not tied down to HTML code that can change later on. When we call functions like these we put parentheses (“()”. after their names for example. mailGunSendEmail(messageBody. So we know we are inside mailGunSendEmail(messageBody. when we see “messageBody = ‘content’;”. If we wanted to add more content outside what is already inside “messageBody = ‘content';” then we could pass another argument by putting another set of parentheses after “mailGunSendEmail(…);” For example. mailGunSendEmail(messageBody1, messageBody2. However for this example all we need is one string of content so we just pass it in directly using messageBody = ‘content';. Now that we have passed in our messageBody into our function we have access to it inside our function so we can append it onto our object literal called htmlContent which contains our HTML code. In order for us to access htmlContent outside the mailGunSendEmail(. function we must declare it at the top of our document using var htmlContent = … Then inside mailGunSendEmail(…. we use JavaScript’s dot syntax to access htmlContent by typing htmlContent after its name fplowed by a period (‘ . ‘. Inside htmlContent there is a property called innerHTML which contains all of our HTML code including links and images that we added into our template earlier on in the process. Finally we use jQuery’s append(. method to append htmlContent onto our emailContent which contains all of our text content including paragraphs and line breaks. Now that our email content contains all of our HTML code along with all of our text content, it’s finally time for us to send our email out! We do this by calling sendMail(. which takes one argument named messageBody containing our email content combined with all of our HTML code using jQuery’s append(. method. Now that sendMail(. has been called with our email content contained within messageBody it knows what type of data it needs to send out over SMTP which stands for Simple Mail Transfer Protocp which is an electronic communications protocp used for sending messages between computer systems over a network which in this case means sending our email through Mailgun! This SMTP server is hosted by Mailgun so they handle all the sending for us so we don’t have to worry about setting up our own server or anything like that! The next thing sendMail(. does is convert our email content into Unicode format which allows us to include accented characters such as áéíóúáééóúáéíóúáééóúáéíóúáéoeíouææåæåæåæåæåæåæåæåæåæåæåæåæåæåæåæåæåæåæåuèèoïïööøøøøøøøøøøøøøøøøøøøøøøøøøøöööjåjåjåjåjåjåjåjåjåjåjǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾǾ͇͇͇͇͇͇͇͇͇͇͇͇͇͇͇͇͇͇͇͇͇ժժժժժժժժժժժժժժժժժժժժժժշշշշշշշշ

The process to integrate Webflow 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.