Skip to content Skip to footer

How to Integrate Google Mail with WordPress

By default, all notifications from your WordPress site are sent through the server where your web resource is hosted. This functionality worked fine for a long time until Google began to tighten its security policy for mailboxes. What happened? Now, emails from unverified or little-known sources are blocked by Google, and they simply do not arrive.

Fortunately, within your Google account itself, there is the option to integrate your site with Gmail. All notifications from the site will reliably reach your email inbox without any blocks from Google. Our Gmail account will serve as the sender of the emails. So now, let’s break down step-by-step how to do this.

Setting Up Two-Factor Authentication

In the first step, we need to set up two-factor authentication for account login. For this, we go to our account settings, move to the “Security” section, and find the Google “Login block“.

Then click on the arrow to the right, next to the inscription “Two-factor authentication disabled” and you get into the settings where you need to follow the instructions step by step. Enter your phone number and confirm it via a code in an SMS message.

Step 1

Step 2

Step 3

Step 4

Creating a Separate Password for Sending Emails

After setting up two-factor authentication for Google Mail, we need to return to the security page again, find the Google login section and click on the line that says “Two-factor authenticationenabled.” Then go to the very bottom, find the “App passwords” section, and go into it.

We will give our new application a random name, let it be “WP-mail,” and click create. Google will generate a password for us to access the mail. This password needs to be saved and specified in the WordPress settings.

Setting Up Mail in WordPress

Enter the admin panel of our site, go to the “Plugins” section, click on add “new plugin” at the top, and in the search bar, type the plugin name “FluentSMTP.” Find the required plugin, click on the “install” button, and then “activate.”

In the plugin settings among all the options, choose “Other SMTP.” And below, you need to fill in the fields.

Field Settings

  • Sender’s email address:
  • Sender’s Name: for example, “Company Name”
  • SMTP Host: ssl://
  • SMTP Port: 465
  • SMTP Username:
  • SMTP Password: the application password created in your Google account

Next, click “Save connection settings” and you’re done! Now, all notifications from the WordPress site will come through the Google server in a secure mode.”