In many cases, you may find your WordPress not sending emails such as registration emails, contact form 7 emails or you are getting a message like the following one when you try to recover your password.
Why is WordPress not Sending Emails?
There are many factors that may cause the issue, but for the sake of making a short and quick guide, I will not dig into the technical stuff as it can be a real trick to trace down the real cause of the issue.
What is the fix?
You will need to use SMTP (Simple Mail Transfer Protocol) to send the emails in your WordPress installation.
What do you need?
Install Easy WP SMTP
Navigate to Plugins -> Add New -> Search for Easy WP SMTP and install it.
Navigate to Settings -> Easy WP SMTP
You can set it up as shown in the screenshot.
Please note that:
SMTP username: your Gmail username.
SMTP Password: your Gmail password.
Now, try to send a test email and it will NOT work! Why?
It means that Google stopped the email from being sent from WordPress that tried to use your Gmail to send the email. The only way to fix this problem is to allow less secure apps (WordPress) to access your Gmail account. To do this, go to this page and choose “Turn on”.
More info can be found here.
As mentioned in the title of this post, we are using Gmail SMTP to fix “WordPress not Sending Emails” problem. There are many alternative solid ways to send emails from your WordPress like Mailgun, Mandrill, etc..