How To Deliver Email in WordPress By Using Gmail SMTP Server

Gmail SMTP Server

Are you having troubles on sending emails from your own WordPress website? The one and only easy way to solve this issue by sending emails from WordPress by using the Gmail SMTP server. In this post, we will show you how to deliver email in the WordPress site by using the Gmail SMTP server.

When and Why You Need Gmail SMTP Server For the WordPress Emails

Your WordPress website sends emails to notify you about a new user registration, automatic updates, lost password reset and even the notification from your contact forms. By default, the WordPress uses the PHP email function to deliver out mail notification. However, this function doesn’t work as expected due to the number of reasons. Most WordPress hosting companies were restricted the usage of this function to prevent spam and abuse. Spam filters on the popular mail service providers check the incoming emails to monitor if they are sent from an authentic email servers. However, the default WordPress emails fail this check and sometimes might not even make it to the spam folders.

SMTP stands for Simple Mail Transfer Protocol is the industry standard for sending mails. Unlike the PHP email function, SMTP uses the proper authentication which increases the mail deliver ability. Gmail provides the SMTP services which you can use to send out mails from your WordPress website. If you want to send WordPress notification mails to yourself and few users on your website, then Gmail SMTP will be the best option for you. Furthermore, if you are planning on sending newsletters mail by using WordPress, then you should use the mass emailing service provider, such as SendGrid or MailGun.

For More Info:

How To Deliver WordPress Email By Using Gmail SMTP Server

If you decide to use the Google Application for work, then you first need to set up your domain to work with Google Applications. We provide you a step by step tutorial on how to set up a professional mail address with Google Apps and Gmail. Reset of the instructions are the same whether you are using a free or paid Gmail Account. The one way you can connect your WordPress website to Gmail SMTP servers by using OAuth Authentication. This method is more secure method to deliver emails by using Gmail servers.

How To Set up Gmail SMTP Server Using OAuth Protocol

The very first thing that you need to do is to install and activate Gmail SMTP plug-in for WordPress. For complete information, read this article step by step to know how to install a WordPress plug-in.

  • After activation, you need to go on Setting>>Gmail SMTP in order to configure the plug-in settings.

Gmail SMTP Server

  • Thereafter, you will see notification which requires you to create a web application with your Gmail account so as to generate API keys. These API keys will authenticate your website’s use of Gmail SMTP servers.

Creating an Application and Generate API Keys for the Gmail

  • First of all you need to click on the web app link which is provided in the plug-in settings to create an application.

  • Then, this link will take you to the Google Developer Console Website and you need to sign in with Gmail account that you want to use for sending WordPress mails.

  • Once you are logged in, there will be a new project created for you with the Gmail API enabled in it.

Gmail SMTP Server

  • Tap on the go to credential button to continue.

  • On the system next screen, you will be asked where will you be calling API from? Then, you need to select Web Browser (JavaScript) from the drop-down. Under “What data will you be accessing?”, then select the “User Data”.

Gmail SMTP Server

Read More:

  • Thereafter, tap on the ‘What credentials do I need?’ icon to continue.

  • Gmail API setup wizard will now ask you to provide URL of the website authorized to use this API. Under the “Authorized JavaScript Origins” you need to enter URL of your domain.

  • Under the “Authorized redirect URIs”, you need to paste the URL displayed on Gmail SMTP plug-ins settings page in the dashboard of your WordPress.

  • Next, tap on “Create client ID” icon to continue.

  • Now, you will reach on the OAuth Screen setup. Simply select your Gmail address and provide a name for the Application which is accessing your Gmail Account. In this case, it will be your own domain name.

Gmail SMTP Server

  • Once you are done, tap on the continue button to proceed.

  • You have successfully setup the Gmail API with an OAuth authentication enabled for it. You need to tap on the Done button.

Gmail SMTP Server

  • After that you will see the list of client IDs (applications) that you have created to access your Gmail API.

  • Tap on the name of your domain or project client to continue.

Gmail SMTP Server

  • On the next screen, you will get the Client ID and Client Secret Keys.

Gmail SMTP Server

  • Now copy the keys and paste then into your Gmail SMTP plug-ins settings page on your WordPress domain.

Gmail SMTP Server

  • Thereafter, fill out the rest of plugin settings and you need to add your Gmail address in OAuth Email Address and from the Email Address fields. Now, you can enter your name or the name of your domain in the “From Name” field.

  • Next, select the TLS for encryption and use 587 as a SMTP port. And finally, tap on the save changes button to store your settings.

  • After the plug-in settings page reloads, you need to scroll down to the bottom and tap on the Grant Permission button.

Gmail SMTP Server

  • This will take you to the Google Accounts where you will be asked to give your site permission to access your Gmail account. Tap on the allow button to continue.

  • After that you will be rerouted back to the Gmail SMTP plug-ins settings page on your WordPress website and also you will notice the SMTP Status icon that has now turn green.

Gmail SMTP Server

That’s all, because you have successfully setup the WordPress mails to be sent using the Gmail SMTP server. Now, you can tap on the test email tab and send yourself a test mail message.

Continue Reading:

Leave a Reply

Your email address will not be published. Required fields are marked *