Title: Gmail SMTP
Author: Noor Alam
Published: <strong>November 12, 2015</strong>
Last modified: February 19, 2026

---

Search plugins

![](https://ps.w.org/gmail-smtp/assets/banner-772x250.png?rev=3022675)

![](https://ps.w.org/gmail-smtp/assets/icon-128x128.png?rev=2432932)

# Gmail SMTP

 By [Noor Alam](https://profiles.wordpress.org/naa986/)

[Download](https://downloads.wordpress.org/plugin/gmail-smtp.zip)

 * [Details](https://pcd.wordpress.org/plugins/gmail-smtp/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/gmail-smtp/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/gmail-smtp/#installation)
 * [Development](https://pcd.wordpress.org/plugins/gmail-smtp/#developers)

 [Support](https://wordpress.org/support/plugin/gmail-smtp/)

## Description

[Gmail SMTP](https://wphowto.net/gmail-smtp-plugin-for-wordpress-1341) plugin allows
you to authenticate with your Gmail account to send email via Gmail SMTP server.

Most shared hosting servers have restrictions when it comes to email. Usually email
will get blocked or missing for no reason. Sometimes it will get blocked when your
website reaches the daily limit of outgoing email. This plugin can bypass this issue
by routing the email through Gmail’s SMTP server.

### Gmail SMTP Add-ons

 * [Reply-To](https://wphowto.net/how-to-add-a-reply-to-address-in-the-gmail-smtp-wordpress-plugin-6756)
 * [Cc](https://wphowto.net/gmail-smtp-plugin-cc-configuration-6770)
 * [Email Logger](https://wphowto.net/gmail-smtp-email-logger-7336)

### Gmail SMTP Benefits

 * Gmail SMTP plugin is not like most SMTP plugins. It uses the OAuth 2.0 protocol
   to authorize access to the Gmail API – which means a more secure login system
   and users won’t have to enter any username or password.
 * Gmail SMTP plugin uses PHPMailer – a very popular library used for sending email
   through PHP’s mail function. This libary is also used in the core WordPress to
   send email.
 * Gmail SMTP plugin utilizes “wp_mail” (A function used by WordPress to send email)
   instead of completely overriding it. This way you still get all the benefits 
   of the default mail function.
 * You no longer need to enable **Allow less secure apps** on your gmail account
   to fix SMTP connection issue. This issue became prominent from December 2014,
   when Google started imposing XOAUTH2 authentication (based on OAuth2) to access
   their apps. This issue still affects almost all the SMTP plugins because they
   authenticate via username and password.

### How OAuth 2.0 Authorization Works

 * You register an application in the Google Developers Console.
 * The application is launched and it requests that you give it access to data in
   your Google account.
 * If you consent, the application receives credentials to access the Gmail API.

### Gmail SMTP Features

 * Configure your website to send email using Gmail SMTP server
 * Authenticate using OAuth 2.0 protocol
 * Authenticate with encryption when sending an email (TLS/SSL)

### Gmail SMTP Basic Setup

 * Create a new project in Google Developers Console.
 * Enable Gmail API in it.
 * Create credentials (OAuth client ID) to access this API.
 * Configure the consent screen for the web application.
 * Enter a **Product Name** and a **Privacy policy URL**.
 * Once the consent screen is configured, create a web application.
 * Go to the plugin settings (`Settings->Gmail SMTP`).
 * Set the **Authorized Redirect URL** of the application as the one shown in the
   settings.
 * Finish creating the web app.
 * Copy the newly created **Client ID** and **Client secret** and paste into the
   settings area.
 * Enter your OAuth Email, From Email and From name.
 * Select an encryption.
 * Enter a port number.
 * Save the settings.
 * Now you can authorize your application to access the Gmail API by clicking on
   the **Grant Permission** button.
 * Once the application has been authorized Gmail SMTP plugin will be able to take
   control of all outgoing email.

### Gmail SMTP Settings

 * **Authorized Redirect URI**: Authorized redirect URL for your website. You need
   to copy this URL into your web application.
 * **Client ID**: The client ID of your web application.
 * **Client secret**: The client secret of your web application.
 * **OAuth Email Address**: The email address that you will use for SMTP authentication.
   This should be the same email used in the Google Developers Console.
 * **From Email Address**: The email address which will be used as the From Address
   when sending an email.
 * **From Name**: The name which will be used as the From Name when sending an email.
 * **Type of Encryption**: The encryption which will be used when sending an email(
   TLS/SSL. TLS is recommended).
 * **SMTP Port**: The port which will be used when sending an email. If you choose
   TLS it should be set to 587. For SSL use port 465 instead.
 * **Disable SSL Certificate Verification**: As of PHP 5.6 a warning/error will 
   be displayed if the SSL certificate on the server is not properly configured.
   You can check this option to disable that default behaviour.

### Gmail SMTP Test Email

Once you have configured the settings you can send a test email to check the functionality
of the plugin.

 * **To**: Email address of the recipient.
 * **Subject**: Subject of the email.
 * **Message**: Email body.

For detailed setup instructions please visit the [Gmail SMTP](https://wphowto.net/gmail-smtp-plugin-for-wordpress-1341)
plugin page.

## Screenshots

 * [[
 * [[

## Installation

 1. Go to the Add New plugins screen in your WordPress Dashboard
 2. Click the upload tab
 3. Browse for the plugin file (gmail-smtp.zip) on your computer
 4. Click “Install Now” and then hit the activate button

## FAQ

### Can I send email from my Gmail account using this plugin?

Yes.

### Can this plugin use OAuth 2.0 to send email?

Yes.

### Can I use this plugin for Gmail signup?

No.

### Can I use this plugin on Gmail app?

No.

### Can I use this plugin to access my Gmail inbox?

No.

### Can I use this plugin to sign out of my Gmail account?

No.

## Reviews

![](https://secure.gravatar.com/avatar/b045ec8588a9cbe971f95b72623ccc73afa114142d7059b380e831a57423b376?
s=60&d=retro&r=g)

### 󠀁[Good when it works, only for small sites installed at root](https://wordpress.org/support/topic/good-when-it-works-only-for-small-sites-installed-at-root/)󠁿

 [karlosuccess](https://profiles.wordpress.org/karlosuccess/) July 17, 2025

The plugin is great when it works. The plugin suddenly stopped working. I contacted
support, they checked the site, and stopped answering. They did not say yes, no,
we can or cannot fix it. They stopped answering.My finding are that the plugin only
works on small wordpress website installs, on the root directory. The plugin is 
not capable to handle large sites or sites installed on directories other than the
root.That means, if you grow, you will start encountering problems with this plugin.
Same as I did. I am now using Fluent SMTP, it works out of the box with no sweat.
Thanks

![](https://secure.gravatar.com/avatar/2c3c568d80194dfaaf9eb4a0d756200e67ced3f0dbdcadf2316338dfd47a1982?
s=60&d=retro&r=g)

### 󠀁[Works well, simple clean interface.](https://wordpress.org/support/topic/works-well-simple-clean-interface/)󠁿

 [FredEval](https://profiles.wordpress.org/fredeval/) April 14, 2025

It’s wonderful when you can find a plugin that is not bloated. Thank you to the 
developer for this great, easy to use and easy to follow instructions!

![](https://secure.gravatar.com/avatar/71ed49e3ab70a9d04a89d182d112869fb7c0122efee5baf022278545770dc895?
s=60&d=retro&r=g)

### 󠀁[Worked Like Magic!](https://wordpress.org/support/topic/worked-like-magic-7/)󠁿

 [djaberadber](https://profiles.wordpress.org/djaberadber/) February 4, 2025

this plugin works like magicdirectly to the inboxDaaamn its really goodif you are
using your own vps – dont forget to open port 587 and 465 in tcp protocolotherwise
it wont work – open them also in your vcn and in ubuntu if you are using itin my
case i had to go to oracle vcn and open both ports than go to ubuntu and open portsthen
it worked like magicthank you for this great plugin

![](https://secure.gravatar.com/avatar/d72add6b21889fb6373922dd04eefb8c29f36800115e7298d18cc103a88d46d8?
s=60&d=retro&r=g)

### 󠀁[Minimal, Clean and Effective](https://wordpress.org/support/topic/minimal-clean-and-effective/)󠁿

 [Menn](https://profiles.wordpress.org/mennstudio/) July 6, 2024

I use this plugin with Google Workplace and it helps me record every email sent 
to customer. Thank you so much for this great plugin.

![](https://secure.gravatar.com/avatar/1489f9c6ecc7a3d4ddae562c263feb7bdf59417bb146e62e60f2b11520e2061a?
s=60&d=retro&r=g)

### 󠀁[Yes, it’s works and clean](https://wordpress.org/support/topic/yes-its-works-and-clean/)󠁿

 [Montri Udomariyah](https://profiles.wordpress.org/anas_xrt/) April 21, 2023

Rather use complex or multifunction mail provider plugin. If you want to use gsuite/
gmail, just simple use this plugin. No ads and fare for add-on.

![](https://secure.gravatar.com/avatar/9553cb723f93dd128a05b29a4a25e19e61c7d194fe28bb04be94108efccc5761?
s=60&d=retro&r=g)

### 󠀁[All is good!](https://wordpress.org/support/topic/all-is-good-5/)󠁿

 [wpSolution](https://profiles.wordpress.org/wpsolution/) April 13, 2023

Only the necessary settings, simple and clean, good description. Thanks!

 [ Read all 100 reviews ](https://wordpress.org/support/plugin/gmail-smtp/reviews/)

## Contributors & Developers

“Gmail SMTP” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ Noor Alam ](https://profiles.wordpress.org/naa986/)

“Gmail SMTP” has been translated into 8 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/gmail-smtp/contributors)
for their contributions.

[Translate “Gmail SMTP” into your language.](https://translate.wordpress.org/projects/wp-plugins/gmail-smtp)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/gmail-smtp/), check
out the [SVN repository](https://plugins.svn.wordpress.org/gmail-smtp/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/gmail-smtp/) by 
[RSS](https://plugins.trac.wordpress.org/log/gmail-smtp/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.3.18

 * Added security for debug output.

#### 1.2.3.17

 * Compatibility update for WordPress 6.9.

#### 1.2.3.16

 * Force the approval prompt during authorization.

#### 1.2.3.15

 * Fixed an issue with exceptions.

#### 1.2.3.14

 * Compatibility update for WordPress 6.8.

#### 1.2.3.13

 * Compatibility update for WordPress 6.7.

#### 1.2.3.12

 * Compatibility update for WordPress 6.5.

#### 1.2.3.11

 * Compatibility update for WordPress 6.4.

#### 1.2.3.10

 * Additional check for the settings link.

#### 1.2.3.9

 * Compatibility update for WordPress 6.3.

#### 1.2.3.8

 * Proper sanitization of the test email body.

#### 1.2.3.7

 * Removed slashes from test email subject and body.

#### 1.2.3.6

 * Compatibility update for WordPress 6.2.

#### 1.2.3.5

 * Added support for the Cc add-on.

#### 1.2.3.4

 * Added support for the Reply-To add-on.

#### 1.2.3.3

 * Compatibility update for WordPress 6.1.

#### 1.2.3.2

 * Updated the mail function for WordPress 6.0.

#### 1.2.3.1

 * Fixed an issue that could cause an Undefined variable error if $attachments was
   not set.

#### 1.2.3

 * Updated the mail function for WordPress 5.9.

#### 1.2.2

 * Updated for WordPress 5.8.
 * Updated the help text for the From Email Address field.

#### 1.2.1

 * WordPress 5.7 compatibility update.

#### 1.2.0

 * WordPress 5.5 compatibility update.

#### 1.1.9

 * Gmail SMTP is compatible with WordPress 5.3.

#### 1.1.8

 * Fixed this warning that is shown on servers running on PHP 7.2 or higher: PHP
   Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in/
   wp-content/plugins/gmail-smtp/PHPMailer/PHPMailerAutoload.php on line 45

#### 1.1.7

 * Added some error handling code after the authorized redirection step. This is
   to make sure that the plugin doesn’t save the error if an error occurs and no
   access token is returned.

#### 1.1.6

 * Updated the PHPMailer library to version 5.2.26. This release fixes a potential
   XSS vulnerability in the default debug output.
 * Gmail SMTP is now compatible with WordPress 4.9.

#### 1.1.5

 * Updated the minimum requirements for PHP to 5.6 since it was causing a curl_reset()
   error in the Google API Client library.

#### 1.1.4

 * Made some changes to only include the Google API Client library and PHPMailer
   when needed.

#### 1.1.3

 * Updated the Google API Client library to version 2.2.0.
 * Updated the PHPMailer library to version 5.2.24. This release contains a security
   fix for XSS vulnerability CVE-2017-11503.

#### 1.1.2

 * Removed the “Basic Setup Instructions” section from the settings page. Full setup
   instructions are now available on the documentation page.

#### 1.1.1

 * Updated the PHPMailer library to version 5.2.22. This release contains a critical
   security fix for CVE-2017-5223.

#### 1.1.0

 * Updated the PHPMailer library to version 5.2.21. This release contains a critical
   security update for CVE-2016-10045 that was fixed in PHPMailer 5.2.20.

#### 1.0.9

 * Updated the PHPMailer library to the latest version (5.2.19). This release also
   contains a critical security update for CVE-2016-10033 that was fixed in PHPMailer
   5.2.18.

#### 1.0.8

 * Gmail SMTP now supports the “wp_mail_failed” hook which fires after a phpmailerException
   is caught.

#### 1.0.7

 * Added more requirements to the Server Info tab to help with troubleshooting.
 * Compatible with WooCommerce email in HTML format.

#### 1.0.6

 * Added a new option to bypass this error on some servers where the SSL certificate
   is not properly configured – Warning: stream_socket_enable_crypto(): SSL operation
   failed with code 1.
    OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:
   certificate verify failed

#### 1.0.5

 * Fixed a bug that was causing this error – “Strict Standards: Non-static method
   GmailXOAuth2::getClient()”

#### 1.0.4

 * google-api-php-client’s autoloader path now points to the src directory as the
   current autoloader has been deprecated
 * Gmail SMTP plugin is now compatible with WordPress 4.4

#### 1.0.3

 * Added a new tab to show some server related information
 * More debug data will be shown when sending a test email

#### 1.0.2

 * Fixed a bug where the oauth URL was pointing to localhost

#### 1.0.1

 * First commit

## Meta

 *  Version **1.2.3.18**
 *  Last updated **2 months ago**
 *  Active installations **10,000+**
 *  WordPress version ** 6.9 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 5.6 or higher **
 *  Languages
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/gmail-smtp/), [Czech](https://cs.wordpress.org/plugins/gmail-smtp/),
   [English (Australia)](https://en-au.wordpress.org/plugins/gmail-smtp/), [English (Canada)](https://en-ca.wordpress.org/plugins/gmail-smtp/),
   [English (New Zealand)](https://en-nz.wordpress.org/plugins/gmail-smtp/), [English (South Africa)](https://en-za.wordpress.org/plugins/gmail-smtp/),
   [English (UK)](https://en-gb.wordpress.org/plugins/gmail-smtp/), [English (US)](https://wordpress.org/plugins/gmail-smtp/),
   and [Spanish (Spain)](https://es.wordpress.org/plugins/gmail-smtp/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/gmail-smtp)
 * Tags
 * [email](https://pcd.wordpress.org/plugins/tags/email/)[gmail](https://pcd.wordpress.org/plugins/tags/gmail/)
   [mail](https://pcd.wordpress.org/plugins/tags/mail/)[oauth](https://pcd.wordpress.org/plugins/tags/oauth/)
   [smtp](https://pcd.wordpress.org/plugins/tags/smtp/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/gmail-smtp/advanced/)

## Ratings

 4.1 out of 5 stars.

 *  [  76 5-star reviews     ](https://wordpress.org/support/plugin/gmail-smtp/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/gmail-smtp/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/gmail-smtp/reviews/?filter=3)
 *  [  3 2-star reviews     ](https://wordpress.org/support/plugin/gmail-smtp/reviews/?filter=2)
 *  [  20 1-star reviews     ](https://wordpress.org/support/plugin/gmail-smtp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/gmail-smtp/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/gmail-smtp/reviews/)

## Contributors

 *   [ Noor Alam ](https://profiles.wordpress.org/naa986/)

## Support

Issues resolved in last two months:

     1 out of 1

 [View support forum](https://wordpress.org/support/plugin/gmail-smtp/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://wphowto.net/)