SOP 104: How to Set up Mailgun Integration on GoHighLevel
Goal:
To set up a functional email API service (Mailgun) in the Customer Relationship Management (CRM) portal GoHighLevel (GHL).
Ideal Outcome:
By the end of this SOP, you will have a functional email API service inside the GoHighLevel portal to ensure the successful delivery of your newsletters, service/product updates, promotional emails, and other email campaigns for your clients.
Prerequisites or requirements:
You need GoHighLevel and Mailgun accounts. You also need access to your domain registrar (e.g. GoDaddy, Namecheap, Digital Ocean Dreamhost, Google Domains, etc) to modify your DNS records for the email API service integration.
Why this is important:
You need to maintain an efficient email receiving and delivery service — and with rules like GDPR, CAN-SPAM, and others, you will want to ensure you've conducted due diligence on each marketing contact and avoid customers and members from unsubscribing or missing your emails because of strict spam filters from email providers like Gmail. This is the reason why you need an established email API service inside the GoHighLevel CRM portal.
Where this is done:
Inside the account dashboards of GoHighLevel and Mailgun. In your domain registrar, you can modify the email records inside the DNS services panel of your domain name.
When is this done:
Preferably, as soon as you are ready to launch your email marketing campaigns.
Who does this:
You, your VA, or your email marketing specialist.
Environment setup
Make sure you have admin access to your agency’s GoHighLevel account.Mailgun deactivated the option to get email replies off its free version in January 2020. A few who acquired Mailgun subscriptions earlier from that date should be grandfathered in as far as receiving free emails in GoHighLevel is concerned. People who acquired accounts after December 2019 are required to switch to Mailgun's lowest-priced subscription ($0.80/1,000 emails) to gain access to the GoHighLevel emails they will receive.
Setup subdomain SMTP service in Mailgun
- Inside the Mailgun dashboard, go to Sending >> Domains >> Add New Domain.
6. Enter the exact values for each ‘Type’ in your domain registrar settings from the Mailgun records.
Verify if all your domain registrar input matches all the highlighted Mailgun records in step #5:
Luckily, the Dreamhost DNS panel has its own ‘automatic error detection’ and will not let you ‘Save’ your work and prompt you, if you include extra characters or spaces, for example.
Switch back to the Mailgun dashboard to verify if there are no errors in the values you entered in your domain registrar's domain DNS panel.
After clicking the ‘Verify DNS’ button in Mailgun, if you had no errors in inputting values in the domain registrar DNS panel, you will see the image below on your screen. It’s here where you will see errors when your registrar domain DNS is still propagating or if your registrar does not have the ‘error detection’ feature like in Dreamhost.
7. Another indicator is when you go to Sending >> Domains in Mailgun. You will see a green check beside the subdomain we used.
8. If you click that subdomain, you will get to see same 2nd screenshot in step #7. You will only use the API details in the GoHighLevel dashboard.
Configure GoHighLevel API settings
1. Inside the GoHighLevel dashboard, click Settings >> Mailgun
2. Click the @ Mailgun Logo above. You’ll see the API key input.
3. Go to the Mailgun dashboard, click on Mailgun >> Sending >> Domains, and click on the subdomain you set up. Then, click ‘Select’ in the API box. Lastly, click on any language and you will get your API key. Copy the API provided by Mailgun.
4. Copy the same API key from Mailgun and paste it in the API box in the GoHighLevel dashboard and hit Save.
Configure Mailgun Settings for Locations
You can set up different email sending domains for sub-accounts (or locations). For now, you need to enable the custom domain you just set up for existing sub-accounts.
1. Back in the GoHighLevel dashboard, click Settings >> Mailgun. You will see a switch under ‘MailGun Settings for Locations’, turn that ‘ON’ and the switch will turn green in color.
2. After clicking the pencil beside the green switch, you will again input the same Mailgun API key and choose the same subdomain below it. Then, hit Save.
Verifying that sub-accounts are using custom domain via Mailgun
- From the default Agency view, switch to Account view by clicking ‘Switch to Account’ and clicking at the client where you intend to use the email domain we configured via Mailgun.
Send a Test Email to Verify Successful GoHighLevel and Mailgun Integration
- Still using Account view, scroll to Marketing >> Emails >> Create Email.
That’s it! You have successfully integrated Mailgun inside the GoHighLevel CRM portal and verified everything is functioning properly by sending a test email without any hitch. You can now kick off your email marketing campaigns like a pro!