Mailgun is an email automation service. It gives you a cloud-based email service for sending, receiving and tracking email sent through your websites and applications. Mailgun features are available through an intuitive RESTful API or with the traditional email protocols like SMTP. Mailgun email automation is trusted by over 10,000 Websites.
- Send email from servers that don’t support SMTP or where SMTP is restricted.
- The Mailgun plugin uses HTTP API to send email by default. You just need a server, hosting control panel (including CyberPanel) and WordPress intalled on it.
- A Mailgun Free account lets you send 200 emails per day. All you need is to set up an account.
- Allows developers to spend more time on building websites and less time dealing with email issues.
- Very easy to understand and manage your emails.
- App API integration.
Configuring Mailgun in WordPress is very easy to do. It takes only a few minutes to set up. Just follow the following steps given below:
Install and set up WP on CyberPanel using this guide: Learn why people are moving their WordPress setups to CyberPanel.
First you have to sign up for an account at the Mailgun website.
To complete the signup, you have to fill in the additional information.
Multiple levels of verification is what allows Mailgun to better ensure email deliverability for all of their users.
You will receive an email to verify your account by clicking on the link. After that you have to enter the mobile number in text box to get the verification code on your mobile.
Once you’ve completed these steps, you’ll be taken to the login page. Go ahead and log into your new Mailgun account.
The next step is to add your domain. Click on the domain option on the left top corner and add new domain.
In this step you need to configure the domain for delivery. Mailgun recommends using a subdomain such as, mg.mydomain.com.
In this Example we will use our root domain.
You will then need to add DNS records so that your email points to Mailgun. You can do this at your domain registrar or 3rd-party DNS provider. They require 2 TXT records, 2 MX records, and a CNAME be added.
If you are a CyberPanel customer you can add DNS records by logging in to your CyberPanel. On the panel click DNS option then click Add/Delete Records, where you can easily update your DNS record. Here you have to update your TXT, MX and CNAME DNS records.
Once all the DNS records been added, the domain will show as “Active.”
The next step is to configure your WordPress site to send emails with Mailgun. We suggest downloading and installing the free Mailgun plugin from the repository.
Go to your WordPress dashboard, click on plugins option, then add new plugin.
The next step is to hook up the plugin. First, go to your domain in Mailgun and copy the API key to your clipboard.
You will then need to go to the Mailgun plugin settings and configure the following:
- Choose HTTP API “Yes”.
- Add your Mailgun domain name: Example: cybertronproject.com.
- Paste your API key.
- Fill out the from address: Example: firstname.lastname@example.org.
- Fill out the “From Name”
- Click Tracking “Html only”
Once you have all the settings configured click on “Save Changes” button. Then click on “Test Configuration” button to get a test email and make sure everything is working fine. It will send it to the default WordPress email.
You’ll get an email like the one shown below.
And all done! All emails from your WordPress site will now send via Mailgun’s mail servers.