How to Fix the WordPress Not Sending Emails Issue
A quite common challenge we see amongst web site owners is that sometimes wordpress is not sending emails, and in few cases website owners are not able to send emails at all, and that’s because most of the wordpress hosting providers don’t offer e-mail hosting, or they limit email sendings, or worse, they have blocked smtp (which is used to send emails).
But thankfully, there is a way around. Please follow the steps below to get your e-mail working in your WordPress web site. This solution is applicable for almost all WordPress email sending problems, in addition to problems you may face while trying to send emails from WooCommerce.
How to Troubleshoot WordPress Not Sending Emails Problem
Typical scenarios of WordPress not sending emails may include a submission to a contact form submitted by a client that you never receive, or a third-party plugin notification. This might additionally apply to WooCommerce not sending emails from sales or customer inquiries. Usually these problems are attributable to incorrect settings in plugins or incompatibility with HHVM, PHP 7, and so on. Below are some solutions to get it working for you.
Test E mail On Your Server
The very first thing you should do is run a test in your WordPress web site with the free Check Email plugin. It’s a very simply plugin designed to easily test if your WordPress set up and/or server can send emails. As of writing this article, the plugin has over 40,000 active installs with a 4.9 out of 5-star score. As soon as installed, just click into “Check E mail” under the tools menu in your WordPress dashboard. Enter in an e-mail address to send a test email, and click on “Send test e-mail.”
You’ll then see a confirmation.
Check your e-mail to see if you received the test e-mail. The subject line will appear as “Test e-mail from https://yourdomain.com.” Additionally, make sure to check your spam or junk folder. When you received an e-mail that means that WordPress can send emails just fine in your server. This implies it’s most certainly a misconfiguration with your contact form plugin or an incompatibility. You may always reach out to the plugin developer for assistance. Tell them that you simply ran the above test and that e-mail is working in your WordPress installation.
If you’re a cPanel, then you can simply change over to PHP 7 to check if there’s a compatibility problem. You can simply switch to PHP 7 inside your “Select PHP Version” under cPanel. After testing, you can change back to previous version of PHP if you want.
In case you are using something other than cPanel, please please refer to control panel documentation or contact support to see if the port is working. Sometimes hosting providers also blocks the port.
A lot of hosting providers are simply resellers of other major server providers (so they buy a server from google cloud/AWS and then resell it to you) in which case they make use of third party resources, which in some cases blocks outbound connections on port 25. According to Google, “This outbound SMTP port is blocked because of the large amount of abuse this port is susceptible to.” In this case, attempt an alternate port such as 2525, 587 or 465.
The right way to Setup SMTP in WordPress
If the above suggestions are not correct for you then arranging WordPress with third party SMTP provider is the ideal solution. Listed here are three options from which you can choose the best way to configure them:
- Choice 1: Gmail (free up to 3,000 emails per 30 days, increased restrictions when you pay for G Suite)
- Choice 2: Mailgun (free up to 10,000 emails per 30 days)
- Choice 3: SendGrid
Mentioned below are just a few more SMTP / transactional email firms that you might also want to consider:
- SparkPost (free as much as 100,000 emails per thirty days)
- Mailjet (free as much as 6,000 emails per thirty days)
- Amazon SES
- SendWP ($9/month per website, very easy to set up)
Choice 1: Configure Gmail SMTP in WordPress
You can take advantage of Gmail SMTP to send WordPress messages. A benefit to do so is you can sometimes improve your email delivery and avoid hitting the spam or junk folder. Nevertheless, you will have to remember that you can only send as many as 100 emails every 24 hours in the free version. Or you could also look at it as 3,000 messages per 30 days without spending a dime. Nevertheless, by paying for G Suite you may be able to increase these limitations.
If you want a completely free SMTP provider with a monthly restriction, we recommend you try Mailgun. Watch the measures under which Gmail SMTP can be configured in WordPress.
The very first thing to do is to get and set up the WP Mail SMTP Pro plugin. You can also try its free version here. The plugin has more than 1 million installations with a strong 4.9 star rating and is actively preserved as of penning this article. It also operates great with WooCommerce and Digital Downloads Straightforward.
Mail SMTP WordPress plugin
Gmail is being used as a SMTP server to send messages to the WordPress setup in this example. We could use the OAuth 2.Zero protocol to authorize Gmail API entry–which implies a safer login system and customers won’t have to enter usernames or passwords.
This plugin really helps as beautifully, reminiscent of Mandrill, SendGrid, a lot of distinct setups and vendors
Enter your “Client ID” and “Client Secret” (Follow the “Gmail Documentation” link to get those details or continue reading below)
Then you will need to open a new tab with Google and generate a new project. Go to console.developers.google.com and log in using the Gmail you can use. Then you will need to build a new brand.
Give a name (you can choose something) to your project and click on “Create.”
Click “Allow APIS and Companies” in the dashboard of your fresh project.
Then press under the G Suite APIs on “Gmail API.”
Then click on on “Allow.”
Then press on the left side of “Credentials.” Select “OAuth shopper ID” below this credentials.
On the following display, you have to to click on on “Configure consent display.”
Then enter your email address, choose a product (which could be something), and not less than a URL for coverage of privacy. We recommend that all things be filled out. Note: A coverage of privacy is necessary to make all things totally beneficial.
You will receive your Client ID and Client Secret on the following screen.