A majority of users are having problems while sending emails from WordPress. It a very common issue that can occur if the WordPress hosting server is not properly configured to use PHP mail service.
However, the error is not directly related to the server. Rather, the email setup is not configured properly during the installation of WordPress. So, WordPress can stop sending emails due to various reasons.
In this article, we will provide you a vivid knowledge about how to fix this issue by using SMTP(Simple Mail Transfer Protocol). Hence, follow every step carefully and implement them when WordPress not sending email.
As discussed in the previous section, the issue of WordPress can take place if the SMTP server of the site is not configured well. Now, we are going to discuss all the steps, which can easily set up the SMTP server to troubleshoot the error.
So, you can do this by following two methods: one is by using your email account’s SMTP server and the second one is to set up WordPress with a third-party SMTP provider.
You can set up the SMTP server for your account by running a test on your WordPress site with an email plugin. Hence, it is recommended to download the “WP Mail SMTP” plugin from the WordPress repository. So, install the plugins and activate the same. Now, follow these steps after activating the plugin.
If WordPress contact form not sending email, you can switch over to the next method.
You can also use the Gmail SMTP server to send emails in WordPress. Moreover, it increases the deliverability of the emails and also prevents them from dropping in junk or spam folders. Now, follow the below-mentioned steps to set up the Gmail SMTP in WordPress.
Firstly set up a Gmail account and then download the “Gmail SMTP” plugin from the WordPress Plugin repository. Install the same after completion of the downloading process. Now, go to the Settings and select Gmail SMTP to configure the plugin.
After that, you need to authorize your WordPress account. For this, you must secure some credentials. Hence, to do that, open a new browser window and type “console.developers.google.com” in the web address section. Now, log in to the Google page by using the previously created Gmail account.
Click on the “My Project”, which is located at the top left side of the window. Tap on the “+” sign to create a new project. Give any name to the project and hit the “Create” button to proceed further.
A new window will open and you need to go to the “Dashboard” section. You will see the “Enable APIs and Services” link at the top of the screen. So, click on that option and find “G Suite API”. Also, click on “Gmail API” located under the option.
Click on the “Enable” link at the top of the screen. Select the “Credential” option from the left panel of the window. Then, hit the “Create credentials” tab and choose “OAuth client ID”.
After that, select “Web application” under “Application type” and enter any name in the provided field. Then click on “Save”.
In the next screen, you will get the “Client ID” and “Client Secret”. So, paste those in the Plugin’s Settings page. Make sure to click “Next” and then “Finish”.
The next step is to get back to the Google Developer Console to verify your domain. To do this, you need to go to the “Post SMTP” tab and tap on “Grant permission with Google”.
To avoid any further error, you need to complete one more step. For this, go to the “Advanced” tab and fill out all the fields such as “Oauth Email Address”, “From Email Address”, “From Name”, “Type of Encryption”, “SMTP Port”, etc. to get approval for long term. Press the “Save Changes” tab to proceed further and click the “Grant Permission” button.
Now, it’s time to enter all your Gmail credentials to authorize the connection and verify that everything is working correctly. If everything is done in proper order, you will receive or send emails from WordPress without any interruption.
We hope, you have obtained the solutions in this article, which you can apply when WordPress not sending email. If you still have any doubts, you can comment in our feedback section.
Feel free to contact us for solving any type of WordPress issue. Moreover, follow our tech-related articles regularly for obtaining troubleshooting tips at your fingertips.