Setting Up Mailgun SMTP

Setting up Mailgun as an SMTP will allow you to send emails to your customers via the Funnel Automation and Follow-Up Funnels. This article will go over how to set up Mailgun in your account to use as your SMTP Email Integration.

Prior to getting started, you will need to have the following:

Step 1: Setting Up Mailgun SMTP:

Mailgun is one of the 3rd party SMTP services supported by ClickFunnels. Just like any other SMTP provider, it will allow you to deliver emails to your customers’ inbox.

Important Note: You must have a credit card on file with Mailgun to connect the integration via API.

Adding Your Domain In Mailgun:

Mailgun needs your domain to generate a series of records that you will need to add to your domain host (Step 2).

1. Log in to your Mailgun account.

2. Click on Sending on the left sidebar.
123.jpg

3. Click on Domains.
123.jpg

4. Click on the Add New Domain button.

5. Add your domain in the Domain name field.

Important Note: Mailgun suggests using a subdomain, such as mailgun.yourdomain.com or mg.yourdomain.com.

6. Choose your Domain region.

Mailgun provides two regions to send your emails from: US and EU.

7. Click on the Advanced Settings (DKIM) link and choose your DKIM key length. (optional)

8. Click on the Add Domain button.

Important Note: Do not close this tab. It’s crucial that you keep this tab open.

Step 2: Adding Mailgun Records In Your Domain Host:

Mailgun will require you to add two TXT records, two MX records, and one CNAME record in your domain host. For the purpose of this article, we will show you how to add those records using a domain purchased/registered through ClickFunnels. If you’re using an External Domain, please check our Help Docs for the ones supported by our platform or contact your domain host.

 

1. In a separate tab, log in to your ClickFunnels account.

2. Hover over the main menu and click on Account Settings.

Setting_Up_Mailgun_SMTP_8.png

3. Select Domains from the left sidebar.

Setting_Up_Mailgun_SMTP_9.png

4. Click on the Domain’s URL to access the settings.

Setting_Up_Mailgun_SMTP_10.png

You can also click on the three dots and then on Edit to access the settings.

Setting_Up_Mailgun_SMTP_11.png

5. Locate Edit Zone Records and click on the Expand button.

Setting_Up_Mailgun_SMTP_12__1_.png

Important Note: Do not close this tab. It’s crucial that you keep this tab open.

6. Adding two TXT Records.
These are located under the Add DNS records for sending section in Mailgun.

a. Go back to the Mailgun tab and copy the Mailgun subdomain only or, in other words, what comes before the .yourdomain.com part of the first TXT record.

For example, if the domain you added in Mailgun is mg.yourdomain.com, you will only copy mg.

Setting_Up_Mailgun_SMTP_13.png

b. Go back to ClickFunnels and click on the Add button.

Setting_Up_Mailgun_SMTP_14.png

c. Select TXT from the Type drop-down menu.

Setting_Up_Mailgun_SMTP_15.png

d. Paste the TXT record in the Name field. In this case, paste mg only.

Setting_Up_Mailgun_SMTP_16.png

e. Go back to Mailgun and copy the entire TXT value.

Setting_Up_Mailgun_SMTP_17.png

f. Paste the value in the Value field in ClickFunnels.

Setting_Up_Mailgun_SMTP_18.png

g. Click on the Save button.

Setting_Up_Mailgun_SMTP_19__1_.png

h. Go back to Mailgun and copy the second TXT record. You will only need to copy up until .yourdomain.com.

Setting_Up_Mailgun_SMTP_20.png

i. Create another TXT record in ClickFunnels and paste the second TXT record in the Name field.

Setting_Up_Mailgun_SMTP_21.png

j. Go back to Mailgun and copy the entire TXT value.

Setting_Up_Mailgun_SMTP_22.png

k. Paste the TXT value in the Value field in ClickFunnels.

Setting_Up_Mailgun_SMTP_23.png

l. Click Save.

Setting_Up_Mailgun_SMTP_19__2_.png

7. Adding two MX Records.
These are located under the Add DNS records for sending section in Mailgun, below the TXT Records.

1. Go back to Mailgun and only copy the Mailgun subdomain of the first MX record. You will need to copy up until .yourdomain.com.

Setting_Up_Mailgun_SMTP_24.png

2. Go back to ClickFunnels and select MX from the Type drop-down menu.

Setting_Up_Mailgun_SMTP_25.png

3. Paste the MX record in the Name field.

Setting_Up_Mailgun_SMTP_26.png

4. Go back to Mailgun and copy the entire MX value.

Setting_Up_Mailgun_SMTP_27.png

5. Paste the MX value in the Value field in ClickFunnels.

Setting_Up_Mailgun_SMTP_28.png

6. Click Save.

Setting_Up_Mailgun_SMTP_19__3_.png

7. Go back to Mailgun and copy the second MX record. Only the subdomain.

Setting_Up_Mailgun_SMTP_29.png

8. Create another MX record in ClickFunnels and paste the second MX record in the Name field.

Setting_Up_Mailgun_SMTP_26__1_.png

9. Go back to Mailgun and copy the entire MX record value.

Setting_Up_Mailgun_SMTP_30.png

10. Paste the MX value in the Value field in ClickFunnels.

Setting_Up_Mailgun_SMTP_31.png

11. Click Save.

Setting_Up_Mailgun_SMTP_19__4_.png

8. Adding the CNAME Record.
You will need to scroll all the way down to find this record in Mailgun.

 

1. Go back to Mailgun and only copy the Mailgun subdomain of the CNAME record. Copy up until .yourdomain.com.

Setting_Up_Mailgun_SMTP_32.png

2. Go back to ClickFunnels and select CNAME from the Type drop-down menu.

Setting_Up_Mailgun_SMTP_33.png

3. Paste the CNAME record in the Name field.

Setting_Up_Mailgun_SMTP_35.png

4. Go back to Mailgun and copy the entire CNAME value.

Setting_Up_Mailgun_SMTP_34.png

5. Paste the CNAME value in the Value field in ClickFunnels.

Setting_Up_Mailgun_SMTP_36.png

6. Click Save.

Setting_Up_Mailgun_SMTP_19__5_.png

9. Verifying your Records.
Once you add the records in ClickFunnels, you will need to verify them in Mailgun.

 

1. Go back to Mailgun and click on the Verify DNS Settings button under the Add DNS records for tracking section.

Setting_Up_Mailgun_SMTP_37.png

2. Click on the Verify DNS Settings button under the Wait for your domain to verify section.

Setting_Up_Mailgun_SMTP_38.png

Important Note: DNS settings may take up to 48 hours to update.

 

10. Select SMTP as your option to send emails.

Setting_Up_Mailgun_SMTP_39.png

Step 3: Completing Your SMTP Integration:

After verifying your records in Mailgun and selecting SMTP as your option to send emails, you will begin the process of integrating Mailgun as your SMTP in ClickFunnels.

 

1. Go back to ClickFunnels, hover over the main menu, and click on Account Settings.

Setting_Up_Mailgun_SMTP_8__1_.png

2. Select Email Integrations (SMTP) from the left sidebar.

Setting_Up_Mailgun_SMTP_40.png

3. Click on the Add email integration button.

Setting_Up_Mailgun_SMTP_41.png

Important Note: This button will show only if you currently have other SMTP Email Integrations added to your account. If not, you will only have to choose Transactional & Marketing as the Email Type (Step 4).

4. Select Transactional & Marketing as the Email Type.

Setting_Up_Mailgun_SMTP_42.png

5. Complete ALL fields in the configuration form with the required info, including the business address and the SMTP Footer.

Setting_Up_Mailgun_SMTP_43.png

1. TitleThis is the name of your integration. This is for internal reference only and not visible to email recipients.

2. From NameThe name displayed as the email sender.

3. From EmailThe email address displayed as the sender.

Important Note: When setting up an SMTP service, it is recommended to avoid using a free From Email address such as Gmail, Yahoo, Outlook since these don’t allow mass email sending. If you need to set up a business email address using your domain, check this article here.

4. SMTP Serversmtp.mailgun.org.

5. SMTP Port587

6. SMTP UserThis should be postmaster@mg.yourdomain.com. The mg part will be replaced with the subdomain you used in Mailgun if you used a different one.

7. SMTP PasswordYour Mailgun generated password.

8. SMTP DomainThis is the domain that you verified. Insert only the domain name. Do not use www, http, or https. If you used mg as the subdomain, then it should be mg.yourdomain.com.

Important Note: You will find all of the information required to fill d through h under the How to share with SMTP section in Mailgun.

9. Domain - Select the domain you will be utilizing for this SMTP setup. The domain should be connected to ClickFunnels.

10. AddressEnter your business's physical address using the corresponding fields.

11. SMTP Footer - Your SMTP Footer is the information that will be included in the footer for all your emails. This area supports HTML code.

You can copy the snippet below, paste it into the field, and edit the Company Name, Address, and Phone information.

Company Name | 123 Address, City, State, Zip | 9876543210

Unsubscribe

 

6. Toggle the Default SMTP Integration switch On (Optional).

Setting_Up_Mailgun_SMTP_44.png

Setting this to On will make this setup the default email sending integration for your ClickFunnels account.

7. Click on the Save SMTP Integration button.

Setting_Up_Mailgun_SMTP_45.png

 

Important Note: ClickFunnels does not provide a WEBHOOK URL for Mailgun SMTP, stats are tracked through UTM tracking.

 

 If you have any questions about this, please contact our support team by clicking the support icon in the bottom right-hand corner of this page.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article