Title: SMTP de Gmail
Author: Noor Alam
Published: <strong>12 de noviembre de 2015</strong>
Last modified: 15 de junio de 2026

---

Buscar 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)

# SMTP de Gmail

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

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

 * [Detalles](https://es.wordpress.org/plugins/gmail-smtp/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/gmail-smtp/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/gmail-smtp/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/gmail-smtp/#developers)

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

## Descripción

El plugin [Gmail SMTP](https://wphowto.net/gmail-smtp-plugin-for-wordpress-1341)
te permite identificarte con tu cuenta Gmail para enviar correo electrónico a través
del servidor SMTP de Gmail.

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.
 * **Desactivar la validación del certificado SSL**: A partir de la versión 5.6 
   de PHP se mostrará un aviso/error si el certificado SSL del servidor no está 
   correctamente configurado. Puedes marcar esta opción para desactivar ese comportamiento
   por defecto.

### 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.

Para instrucciones de instalación detalladas, por favor visita la página del plugin
[Gmail SMTP](https://wphowto.net/gmail-smtp-plugin-for-wordpress-1341).

## Capturas

[[

[[

## Instalación

 1. Go to the Add New plugins screen in your WordPress Dashboard
 2. Haz clic en la pestaña de subir
 3. Busca en tu ordenador el archivo del plugin (gmail-smtp.zip)
 4. Haz clic en «Instalar ahora» y luego pulsa el botón activar

## FAQ

### ¿Puedo enviar correo electrónico desde mi cuenta Gmail usando este plugin?

Sí.

### ¿Puede este plugin usar OAuth 2.0 para enviar correo electrónico?

Sí.

### 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.

## Reseñas

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

### 󠀁[Works year after year, now also in Docker](https://wordpress.org/support/topic/works-year-after-year-now-also-in-docker/)󠁿

 [magdamunro](https://profiles.wordpress.org/magdamunro/) 15 de junio de 2026

After the setup, that you really need to set up carefully at Gmail (at least when
I did many years ago it took some effort), this Gmail SMTP plugin has given me years
of very reliable integration with WooCommerce sales, various contact forms and status
updates. Backups run locally as if on server with no changes and migrating my db
to Docker where I’m using reverse proxy works locally, on staging as well as on 
the production site. I honestly cannot remember a single issue, and if there was
something it was easily solved.I’ve found Gmail SMTP to be very reliable. I have
yet to use the later versions after 1.2.0 on Wordpress 6.9 and later, so will update
later once this is running for me.

![](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/) 17 de julio de 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/) 14 de abril de 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/) 4 de febrero de 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/) 6 de julio de 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/) 21 de abril de 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.

 [ Leer todas las 102 reseñas ](https://wordpress.org/support/plugin/gmail-smtp/reviews/)

## Colaboradores y desarrolladores

«SMTP de Gmail» es un software de código abierto. Las siguientes personas han colaborado
con este plugin.

Colaboradores

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

«SMTP de Gmail» está traducido en 8 idiomas. Gracias a [los traductores](https://translate.wordpress.org/projects/wp-plugins/gmail-smtp/contributors)
por sus contribuciones.

[Traduce «SMTP de Gmail» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/gmail-smtp)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/gmail-smtp/) , echa
un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/gmail-smtp/) o
suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/gmail-smtp/)
por [RSS](https://plugins.trac.wordpress.org/log/gmail-smtp/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

#### 1.2.3.20

 * Fixed an issue with sending a test email.

#### 1.2.3.19

 * Compatibility update for WordPress 7.0.

#### 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

 * Se ha añadido algún código de manejo de errores después del paso de redirección
   autorizada. Esto se ha hecho para asegurarse de que el plugin no guarda el error
   si este ocurre y no se devuelve un token de acceso.

#### 1.1.6

 * Actualizada la biblioteca PHPMailer a la versión 5.2.26. Esta versión soluciona
   una potencial vulnerabilidad XSS en la salida de depuración por defecto.
 * Gmail SMTP es ahora compatible con WordPress 4.9.

#### 1.1.5

 * Actualizada la versión mínima necesaria para PHP a la versión 5.6 ya que causaba
   un error curl_reset() en la biblioteca cliente de la API de Google.

#### 1.1.4

 * Hechos algunos cambios para incluir la biblioteca cliente de la API de Google
   y PHPMailer sólo cuando es necesario.

#### 1.1.3

 * Actualizada la librería cliente de la API de Google a la versión 2.2.0.
 * Actualizada la biblioteca PHPMailer a la versión 5.2.24. Esta versión contiene
   un parche de seguridad para solucionar la vulnerabilidad de XSS 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

 * Primera versión

## Meta

 *  Versión **1.2.3.20**
 *  Última actualización **hace 3 días**
 *  Instalaciones activas **10.000+**
 *  Versión de WordPress ** 7.0 o superior **
 *  Probado hasta **7.0**
 *  Versión de PHP ** 5.6 o superior **
 *  Idiomas
 * [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/)
   y [Spanish (Spain)](https://es.wordpress.org/plugins/gmail-smtp/).
 *  [Traducir a tu idioma](https://translate.wordpress.org/projects/wp-plugins/gmail-smtp)
 * Etiquetas:
 * [email](https://es.wordpress.org/plugins/tags/email/)[gmail](https://es.wordpress.org/plugins/tags/gmail/)
   [mail](https://es.wordpress.org/plugins/tags/mail/)[oauth](https://es.wordpress.org/plugins/tags/oauth/)
   [smtp](https://es.wordpress.org/plugins/tags/smtp/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/gmail-smtp/advanced/)

## Valoraciones

 4.1 de 5 estrellas.

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

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

[Ver todas las valoraciones](https://wordpress.org/support/plugin/gmail-smtp/reviews/)

## Colaboradores

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

## Soporte

Problemas resueltos en los últimos dos meses:

     0 de 1

 [Ver el foro de soporte](https://wordpress.org/support/plugin/gmail-smtp/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](https://wphowto.net/)