How to fix WordPress not sending email issue
If you’re experiencing the WordPress not sending email issue, it’s usually thanks to problems together with your server configuration.
Like many web applications, WordPress uses the PHP ()mail function to send emails. On a correctly configured server, the feature should work seamlessly. However, server hosts may place temporary or permanent restrictions on the utilization of PHP ()mail to scale back automated spam.
If your WordPress isn’t sending email, switch to SMTP (Simple Mail Transfer Protocol). you’ll use SMTP on either your email account or Google.
Use Google SMTP email servers fix WordPress not sending email
The second solution to fix WordPress not sending email issue uses a free Gmail account from Google and therefore the company’s SMTP servers. Head over to the Gmail website and found out an account. the subsequent configuration steps work with free Gmail or Google Apps accounts.
1 – Once you’ve got your Gmail account found out , download and install the Gmail SMTP plugin from the WordPress Plugin repository.
2 – Once activated, click Settings > Gmail SMTP to configure the plugin.
3 – To authorize the utilization of Google’s email servers on your WordPress, you would like to make a group of secure credentials. First, open a replacement browser window/tab and visit console.developers.google.com
4 – Log in together with your Gmail account details.
5 – Click the My Project link at the highest of the screen.
6 – within the panel that appears, click the Add (+) button to make a replacement project.
7 – Create a reputation for the project and click on the Create button to proceed.
8 – within the sidebar, click Dashboard, then click the Enable APIs and Services link at the highest of the screen.
9 – Find and choose the Gmail API link listed under Google Workspace APIs.
10 – At the highest of the screen, if you see an Enable link, click it to proceed.
11 – We now got to create access credentials to be used with the Gmail API. Select Credentials from the sidebar, then click the Create credentials button.
12 – within the menu that appears, select OAuth client ID.
13 – within the Application type screen, select Web application then click the Create button.
14.. to make an OAuth client ID, you would like to line a product name. Enter a reputation , then head back to your WordPress admin dashboard.
15 – Copy the contents of the Authorized Redirect URI field into the relevant field of the Gmail API Create client ID page.
- Now click the Create button. a group of OAuth client credentials are going to be displayed on the screen.
- Copy and paste the Client ID and Client Secret into the plugin’s Settings page.
- Proceed to configure the remaining plugin settings.
OAuth Email Address: the e-mail address that you simply will use for SMTP authentication. this could be an equivalent email utilized in the Google Developers Console.
From Email Address: the e-mail address to be displayed when sending an email.
From Name: The name to be displayed when sending an email.
Type of Encryption: The encryption to be used when sending an email (either TLS/SSL). By default, it should be set to TLS.
SMTP Port: The port to be used when sending an email. If you select TLS, it should be set to 587. For SSL, use port 465 instead.
- Click Save Changes to proceed.
- Click the Grant Permission button that appears.
- Enter your Gmail account credentials to authorize the connection.
- make sure your SMTP Status now reads Connected.
- you’ll now proceed to the Test Email tab to undertake out the new email connection.