Gmail SMTP server for sending emails in WordPress

August 3, 2017

WordPress enables the easy uploading of content over the internet and also manage the contents effectively. The user can send emails from the WordPress website and in case there is an issue in sending emails from the site use Gmail SMTP server for email sending. This article will provide the necessary steps related to that.

WordPress uses PHP mail function for sending email notifications and it might happen that this function is not working due to various reasons. To prevent spam most WordPress hosting companies restrict its usage. SMTP in the industry standard for sending emails.

There are mainly 2 ways to do it.

First one is ‘OAuth Authentication’ which is the most secure method to send emails using the Gmail servers.

Second is by using Gmail to be used by less secure apps. This method is not a secured one as the user need to type the Gmail password that will be visible to admin users.

Steps to setup Gmail SMTP using OAuth Protocol –

Firstly install the Gmail SMTP plugin for WordPress.

Now go to ‘Settings’ and then ‘Gmail SMTP’ for the plugin settings configuration.

The user can now see the requirement of a web application with the Gmail account to generate API keys.

Check for the link to the web application and the link will take the user to the console website of Google Developers.

Sign-in with the Gmail account that is to be used for sending WordPress emails.

A new project will be created with the Gmail API after the login.

To continue to click on ‘Go to credentials’ button.

The user will be asked ‘Where will you be calling the API from?’ on the next screen. From the drop-down select ‘Web Browser’.