¿Tienes problemas para enviar correos electrónicos desde tu sitio WordPress?
Por defecto, WordPress utiliza la función de correo de PHP para enviar correos electrónicos, que algunos servidores restringen. Una forma sencilla de solucionar esto es enviar correos electrónicos de WordPress utilizando el servidor SMTP de Gmail.
En este artículo, te mostraremos cómo enviar correos electrónicos desde tu sitio de WordPress utilizando el servidor SMTP de Gmail.
Por qué y cuándo necesitas el servidor SMTP de Gmail para los correos electrónicos de WordPress
Su sitio WordPress envía correos electrónicos para avisarle del registro de nuevos usuarios, restablecer contraseñas perdidas, actualizaciones automáticas y notificaciones de sus formularios de contacto.
Por defecto, WordPress utiliza la función PHP mail para enviar avisos por correo electrónico. Sin embargo, esta función no funciona como se espera debido a una serie de razones.
La mayoría de las empresas de alojamiento de WordPress restringen el uso de esta función para evitar abusos y Spam.
Los filtros de Spam de los proveedores de servicios de correo electrónico más conocidos marcan / comprueban si los correos electrónicos entrantes se envían desde servidores de correo auténticos. Por defecto, los correos electrónicos de WordPress no pasan esta comprobación y a veces ni siquiera llegan a la carpeta de Spam.
SMTP (Simple Mail Transfer Protocol) es el estándar de la industria para el envío de correos electrónicos. A diferencia de la función de correo de PHP, SMTP utiliza una identificación adecuada, lo que aumenta la entregabilidad del correo electrónico.
Gmail proporciona un servicio SMTP que puedes utilizar para enviar correos electrónicos desde tu sitio de WordPress. Si sólo quieres enviarte correos electrónicos de aviso de WordPress a ti mismo y a unos pocos usuarios de tu sitio, los servidores SMTP de Gmail son la mejor opción.
Sin embargo, si tiene previsto enviar boletines electrónicos con WordPress o si tiene una tienda en línea, debería utilizar un proveedor de servicios de envío masivo de correos electrónicos, como Brevo (antes Sendinblue) o Mailgun.
Servicio SMTP de Gmail gratuito o de pago para WordPress
Puedes utilizar tu cuenta gratuita de Gmail para enviar correos electrónicos de WordPress. Sin embargo, para una mejor capacidad de entrega, recomendamos utilizar Google Workspace de pago.
Con Google Workspace, obtienes tu propia dirección de correo electrónico de marca profesional, como (name@yoursite.com).
Google Workspace requiere que añadas registros MX a tu nombre de dominio, lo que significa que tus correos electrónicos parecerán proceder de tu propio nombre de dominio, lo que aumenta la autenticidad y garantiza una mejor capacidad de entrega.
Utilizamos Google Workspace para WPBeginner y podemos decir sinceramente que es el mejor.
Tutorial en vídeo
Si prefiere instrucciones escritas, siga leyendo.
Cómo enviar correos electrónicos de WordPress utilizando el servidor SMTP de Gmail
Si decides utilizar Google Workspace, primero tendrás que establecer tu dominio para que funcione con Google Apps. Tenemos un tutorial paso a paso sobre cómo establecer una dirección de correo electrónico profesional con Google Workspace.
El resto de las instrucciones son las mismas tanto si utilizas una cuenta de Gmail de pago como gratuita.
Lo primero que tienes que hacer es instalar y activar el plugin WP Mail SMTP. Para más detalles, consulta nuestra guía paso a paso sobre cómo instalar un plugin de WordPress.
WP Mail SMTP es el mejor plugin SMTP para WordPress del mercado. Le permite utilizar fácilmente cualquier servidor SMTP para enviar correos electrónicos de WordPress con mayor capacidad de entrega.
Aunque hay una versión gratuita, recomendamos comprar la versión de pago llamada WP Mail SMTP Pro, que le da acceso a soporte premium, más servicios de envío, y un guante blanco establecido por uno de sus expertos.
Una vez activado, debe visitar la página Configuración ” WP Mail SMTP para establecer los ajustes del plugin. A continuación, introduzca su clave de licencia y haga clic en el botón “Verificar clave”. Puedes encontrar la clave en el área de tu cuenta WP Mail SMTP.
En la pestaña Ajustes generales, debes asegurarte de que utilizas tu dirección de correo electrónico de Gmail en el campo “De correo electrónico”.
A continuación, debe indicar el nombre del remitente.
El plugin WP Mail SMTP ofrece dos formas de conectar tu sitio WordPress a los servidores de Gmail.
El primer método utiliza la identificación OAuth. Se trata de un método más seguro para enviar correos electrónicos utilizando los servidores de Gmail.
El segundo método consiste en introducir manualmente los ajustes SMTP de Gmail. Este método no se recomienda porque es menos seguro.
Dicho esto, vamos a establecer que WordPress utilice SMTP de Gmail para enviar correos electrónicos.
Método 1: Configuración de Gmail para enviar correos electrónicos de WordPress mediante el protocolo OAuth
Este método se recomienda para todos los usuarios. Es más seguro y, una vez que lo establezcas, no tendrás que volver a hacerlo.
Para empezar, selecciona “Google/Gmail” como servicio de envío.
A continuación, verá tres campos que deberá rellenar cuando se desplace hacia abajo.
Sólo tienes que introducir tu Client ID, Client Secret y Authorized Redirect URI cuando estés allí.
Vamos a establecer estos campos.
Creación de una aplicación y generación de claves API para Gmail
Para empezar, basta con visitar el sitio web de Google Cloud Platform.
A continuación, haz clic en “Mi primer proyecto” en la parte superior.
Se abrirá una pequeña ventana emergente en la que podrá seleccionar sus proyectos.
A continuación, haga clic en la opción “Nuevo proyecto”.
En la pantalla siguiente, se le pedirá que indique un nombre para su proyecto.
Dale un nombre memorable para que puedas reconocerlo fácilmente en el futuro.
Después, haz clic en el botón “Crear” para continuar.
La consola de desarrollador creará ahora tu proyecto y te llevará a su panel de control. Google ofrece a los desarrolladores acceso a muchas de sus API y servicios. Debes activar las API que necesites para este proyecto.
Haga clic en el botón “Activar API y servicios” para continuar.
Accederás a la página de la biblioteca de API. A continuación, tienes que escribir Gmail en el cuadro de búsqueda para encontrar rápidamente la API de Gmail y hacer clic para seleccionarla.
Ahora verá un resumen de la API y lo que puede hacer.
Basta con hacer clic en el botón “Activar” para continuar.
Ahora que su API está activada, el siguiente paso es crear las credenciales que puede utilizar en los ajustes de su plugin WP Mail SMTP.
Haga clic en el botón “+ Crear credenciales” para continuar y seleccione la opción “Ayúdame a elegir” del menú desplegable.
En la pantalla siguiente, le preguntará qué API desea utilizar.
Selecciona “API de Gmail” en el menú desplegable correspondiente a la API que utilizas.
A continuación, seleccione “Datos de usuario” para los datos a los que desea acceder.
A continuación, haga clic en el botón “Siguiente”.
Ahora, tendrás que introducir la información de tu App.
Puedes empezar dando un nombre a tu aplicación, seleccionando la dirección de correo electrónico que has proporcionado y añadiendo un logotipo de la aplicación si lo deseas.
A partir de ahí, tendrá que desplazarse hacia abajo e introducir la información de contacto del promotor.
Una vez introducida la dirección electrónica, basta con hacer clic en el botón “Guardar y continuar”.
En la pantalla siguiente, puedes configurar los “Ámbitos” para la API de Gmail. Este paso es opcional y puedes omitirlo por ahora.
Basta con desplazarse hasta el final de la página y hacer clic en el botón “Guardar y continuar”.
A continuación, introduzca los detalles del ID de cliente OAuth.
Comience por elegir “Aplicación Web” como Tipo de aplicación en el menú desplegable y, a continuación, introduzca un nombre.
Cuando se desplace hacia abajo, verá las opciones de Orígenes de JavaScript autorizados. Puede omitir esta opción y dirigirse a URL de redireccionamiento autorizadas.
Haz clic en el botón “+ Añadir URL” situado debajo de las URL de redireccionamiento autorizadas e introduce https://connect.wpmailsmtp.com/google/ en el campo de URL.
Una vez introducida la URL, basta con hacer clic en el botón “Crear”.
A continuación, verá sus credenciales en el área Sus credenciales.
Sigue adelante y haz clic en el botón Hecho de la parte inferior para continuar.
Ahora accederá a la página de credenciales de su proyecto. En esta página, puede ver sus credenciales creadas recientemente en este anuncio / catálogo / ficha. Debe hacer clic en el icono de edición situado al lado de sus credenciales para continuar.
Esto te llevará a la página de edición de credenciales, donde podrás ver tu secreto de cliente y tu ID de cliente.
Debe copiar y pegar la clave en la página de ajustes de su plugin.
Vuelva a la página de ajustes del plugin en su área de administrador de WordPress.
Ahora que ya tienes el ID de cliente y las claves secretas de cliente, tienes que hacer clic en el botón “Guardar ajustes” para continuar.
El plugin guardará tus ajustes y recargará la página.
A continuación, desplázate hasta la parte inferior de la página de ajustes y haz clic en el botón “Permitir que el plugin envíe correos electrónicos a través de tu cuenta de Google”.
Esto te llevará a tu cuenta en Google.
A continuación, se le pedirá que autorice al sitio web a enviar correos electrónicos en su nombre.
Sólo tienes que seleccionar tu cuenta de Gmail y dar permiso para enlazar tu proyecto de API de Google.
A continuación, se le redirigirá de nuevo a su sitio web, donde verá un mensaje de correcto funcionamiento.
Método 2: Establecer SMTP de Gmail como remitente SMTP
Este método te permite conectarte manualmente a los servidores SMTP de Gmail para enviar tus correos electrónicos de WordPress.
En primer lugar, debe visitar la página Settings ” WP Mail SMTP para establecer los ajustes del plugin.
Comienza indicando la dirección de Gmail que deseas utilizar en el campo “De correo electrónico” y tu nombre en el campo “De nombre”.
A continuación, seleccione “Otro SMTP” como servicio de envío.
Marque también la casilla siguiente a la ruta de vuelta.
A continuación, desplácese hasta la sección Otros SMTP.
Aquí es donde estableceremos más ajustes para conectarnos a los servidores SMTP de Gmail.
Esta es la configuración exacta que debe añadir a los ajustes del plugin:
- Alojamiento SMTP: smtp.gmail.com
- Cifrado: Utilice el cifrado SSL.
- Puerto SMTP: 465 (debería aparecer automáticamente al seleccionar el cifrado SSL)
- Auto TLS: Desactivar TLS
- Identificación: Activar la identificación
- Nombre de usuario SMTP: Tu dirección completa de Gmail, por ejemplo john.smith@yourdomain.com o john.smith@gmail.com
- Contraseña SMTP: Contraseña de su cuenta de Gmail
Cuando haya terminado, haga clic en el botón Guardar cambios para establecer los ajustes.
Eso es todo; has establecido correctamente WP Mail SMTP para utilizar los servidores SMTP de Gmail.
Nota: Si utilizas el método dos, debes saber que es menos seguro porque tu contraseña se almacena en texto. Puedes mejorarla utilizando el consejo constante, pero te recomendamos encarecidamente que utilices el método 1.
Cómo probar los ajustes de WP Mail SMTP
WP Mail SMTP plugin le permite probar sus ajustes de correo electrónico para que pueda asegurarse de que todo funciona correctamente.
Necesita visitar la página de Ajustes ” WP Mail SMTP y hacer clic en la pestaña ‘Prueba de correo electrónico’. Simplemente proporcione una dirección de correo electrónico a la que pueda acceder en el campo ‘Enviar a’ y haga clic en el botón Enviar correo electrónico.
Verá un mensaje de correcto. Ahora puede marcar / comprobar su bandeja de entrada para ver un mensaje con el asunto ‘WP Mail SMTP: Test Email to…’.
Eso es todo; has establecido correctamente tu sitio de WordPress para enviar correos electrónicos mediante los servidores SMTP de Gmail.
Consigue más con WP Mail SMTP Pro
Si desea aún más funcionalidad, debería probar WP Mail SMTP Pro.
Con la versión Pro del plugin, puede conectarse con:
- Espacio de trabajo de Google/Gmail
- Amazon SES
- Mailgun
- Office 365 / Outlook.com
- SendGrid
- Y más
También obtendrá características adicionales como registros de correo electrónico, la posibilidad de ajustar/controlar con precisión qué notificaciones envía su sitio WordPress y mucho más.
Diagnosticar problemas de SMTP de Gmail que no funciona
Hemos observado que algunos usuarios tienen problemas al utilizar Gmail SMTP con determinadas configuraciones de alojamiento compartido.
Sigue estos pasos para corregir el problema SMTP de Gmail:
Acceda a su cuenta de cPanel. A continuación, busque el botón “+ Crear” en la página de cuentas de correo electrónico.
A partir de ahí, puedes crear una cuenta de correo electrónico que coincida con tu dirección de correo electrónico de Google Apps.
Al crear la cuenta de correo electrónico, básicamente estás haciendo que tu servidor de alojamiento conozca una dirección de correo electrónico que debería enviar correos electrónicos. Este paso es una solución para convencer al servidor de que estás enviando correos electrónicos a través de él, aunque planees utilizar el servidor SMTP de Gmail.
Esto puede parecer extraño porque no estás utilizando tu servidor para el correo electrónico. Este paso básicamente engaña a tu servidor haciéndole creer que estás enviando el correo electrónico a través del servidor.
En su cuenta de cPanel, vaya a los Registros MX y cambie el enrutamiento MX de automático a remoto. Puede ser un poco difícil de encontrar ya que cada alojamiento tiene ahora una interfaz de cPanel personalizada.
Tienes que buscar un pequeño enlazar al lado de MX que dice Email Routing: Remote Mail Exchanger. Puede seguir nuestra guía sobre cómo cambiar los registros MX de su sitio WordPress en función de su servicio de alojamiento.
A continuación, vuelva a acceder a su sitio de WordPress y envíe un correo electrónico de prueba.
Esperamos que este artículo te haya ayudado a aprender a enviar correos electrónicos en WordPress utilizando el servidor SMTP de Gmail. También puedes consultar nuestra lista de los mejores plugins de formularios de contacto para WordPress y nuestra comparativa de los mejores servicios de marketing por correo electrónico para pequeñas empresas.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Syed Balkhi says
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
David says
Hi, I used this tutorial last year to install and configure the Gmail SMTP plugin. Until very recently, the Gmail SMTP plugin in conjunction with my website’s contact form worked perfectly. But I tested my website’s contact form today, and I got the following fatal-error message:
Fatal error: Uncaught exception ‘Google_Auth_Exception’ with message ‘Error refreshing the OAuth2 token, message: ‘{ “error” : “invalid_grant” }”
I don’t have a clue what that means. I get the same fatal-error message when I use the plugin to send a test message at Gmail SMTP plugin>Settings>Test email.
I haven’t changed any of the plugin settings since I first installed it a year ago, and I haven’t done anything new with my Google Console account either. I’m using the most recent version of the Gmail SMTP plugin, and also the newest version of WordPress.
Any ideas or suggestions?
Thanks!
WPBeginner Support says
Hey David,
It seems like your Oauth2 token has expired. Try following the tutorial again from the beginning to set it up again.
Administrador
Ehsan says
Thank U very much – one of my problem was this “my emails goes to spam folder”
with this service(Method 1) Now It’s great – of course after 14 days you must pay for that but still it’s prefect
I have question;
Can I send 100 Emails like newsletter for my customer is it OK for Google!?
I afraid my Emails after it goes to spam folder again
Sharon says
I did everything as described, but the contact form on my website still does not work.
Adondriel says
Hey, add a thing at the end for the troubleshooting thing: “Check with your website host and verify that they do not block outgoing requests by default.” I know 1. GoDaddy does this, and won’t let you unblock. and 2. Namecheap also blocks by default but you just gotta contact support, give em your info and ask em to unblock port 587 and boom, it’ll all work again.
Lucas says
You save my life!
Tks!
adam says
i keep getting a Error: redirect_uri_mismatch when i press ‘grant permission’. It’s driving me nuts as I can’t work out what is wrong? Everything seems to match.
Adam
Grzegorz says
Same here. i get redirect_uri_mismatch
Macky says
This video has been a fantastic help.
I’m a complete WordPress beginner.The step-by step instructions are very easy to follow. Now my emails are working perfectly!! Plus I also learnt how to insert headers & footers with ease.
Thanks once again!!
WPBeginner Support says
Hi Macky,
We are glad you found the video helpful. You may also want to subscribe to our YouTube Channel for WordPress video tutorials.
Administrador
Fabio says
Your tutorial saved my site! Thank you very much mate!
Maggie Z says
A follow-up question – because of the login conflict issue, I was also considering using WP Mail SMTP. However, many users on the support forum for that plugin express concern that the password for the email account is visible on the admin page in plain text.
I have a firewall set up that prevents non-admins from getting in to the back end, so is there any real security concern regarding the password showing in plain text? Any advice much appreciated!!!
Maggie Z says
After troubleshooting quite a bit, I finally relented and went with WP Mail SMTP, which requires the “allow less secure apps” solution – a tech support person at G Suite told me that it was safe, and it seems like the only way to go for my particular setup. Appears to be working now. Thanks for the incredibly clear instructions!!! I am now a firm fan of this site.
Maggie Zellner says
The video is fantastic, and the plugin installed perfectly. Unfortunately I didn’t realize until after I went through the whole process (because I didn’t read the documentation on the plugin carefully), the Gmail SMTP plugin eliminates the need for users to log in, and therefore it interfered with the login process that we have instituted for paid members on our website (which we manage through a plugin called PaidMembershipsPro).
Is there any way to disable that aspect of this plugin, so I can send all email via our Gmail account, but can still have users log in and out?
Eric says
Great article! However, I am unclear on something when using WordPress for sending newsletters. What is the difference between those mass emailing service providers (mailgun & Sendgrid) and using Google Apps for work SMTP?
Can’t we use Google Apps for work to send newsletters just as well?
WPBeginner Support says
with Google Apps for Work, you can only send an email to 500 recipients max (for paid business accounts). You cannot use it for newsletters.
Administrador
Eric says
Thanks so much for your response! With Google Apps for Work only limiting to 500 recipients, then I suppose it would work if we sent it to 500 or less people.
My next question, is it max to send all at one time or per day? If we throttle it to only send out a few per minute, do you know if it would allow it to send thousands within a few hours?
Heather says
Thank you so much! This was so helpful!
zim ejin says
Hi, this was very informative thank you for posting. however i have a website hosted on aws ec2, and route53 for dns. i tried the secure configuration. it didn’t work. Is there a special configuration for self hosted websites on aws ec2/route53. btw : i don’t have a cpanel installed.
Lanrz says
After granting access and clicking on the allow button, I was not being redirected back to wordpress and the SMTP status is still not connected.
Any advice on how I should go about doing it?
Thanks!
Nathalie says
Doesn’t work: test email retuens Connection: opening to smtp.gmail.com:587, timeout=300, options=array ( ‘ssl’ => array ( ‘verify_peer’ => false, ‘verify_peer_name’ => false, ‘allow_self_signed’ => true, ),)
I checked Email Routing -> Remote Mail Exchanger but it didn’t help
Raph Divine says
Thanks for the write-up. It really helped me! 5stars!
Real Name says
This guide worked wonderfully until my server stopped sending emails and I can’t get it to work again. The “Test Email” tab doesn’t make it clear if the email has successfully sent or not since it just spews out 52 lines that don’t mean much to me. :/
Boro says
Amazing Tutorial !!!!
Thank you
peter says
Ok, so I have followed the OAuth instructions and my SMPT status button has gone green. However, whether through test email or my site, I can not send an email through the contact us form (pluggin contact form builder by web Durado). The hanging message say waiting for and eventually I get a 405 error notice.
Any thoughts.
Thomas says
Hoping you can help me?
I tried setting up method 1 using gmail and I got the ‘green light’ from wordpress however when testing the email I receive the following error message after waiting 1 minute for it to send:
Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()
Any ideas on how to fix this?
Very best,
Tom
Fernando Santos says
This tutorial is awesome!
I have one question, though. I directed the contact form messages to a gmail group email address, but, for some reason, the messages aren’t being delivered. When I direct to a “real” e-mail address like the messages are normally delivered.
I would really appreciate if someone could give me a hand figuring out why this happens.
Thank you!!!
Paul says
+1 for this question. Have exactly the same question as wish to use our info@.. address
Andres says
Thanks guys for such useful article. I followed all the steps and was able to configure the email correctly. However, when I receive the email from mydomain.com address (sent by wordpress after purchasing a product), the user avatar (gmail picture) doesn’t appear even though mydomain.com has a picture already.
In fact, if I send an email directly from mydomain.com account via google for work, the receiver is able to see the image right away, but it’s not the case if the email is sent via wordpress.
Do you have any suggestions? Thanks a lot, and keep rocking!
Sahar says
Thanks for this helpful information. You really helped me out in setting this up, and I appreciate you taking the time to create this useful information!
WPBeginner Support says
Glad you found it helpful.
Administrador
lokesh kumar CL says
What is origin URI of the client application. its not accepting website URL ….please help me out
Susan says
Excellent instructions and thanks for walking me through setting this up. I did try the MX record change but no luck there either.
I get a 405 Not allowed message when I try to send an email.
I am hosted by Bluehost and am using the DIVI theme.
If anyone has any ideas I would be very grateful.
Leista says
Hello, having a similar issue. Getting a 405 error, and also hosted on Bluehost. By any chance, were you able to fix the problem? Thanks.
JDC says
I had the same problem with bluehost. But this gave me the solution.
I uninstalled any extra plugin for mail, including smtp mailer or gmail smtp plugin and just used a random address like mynewaddress@example.com (replace example.com with your own domain name) and it worked. I sent an email to my gmail account I it passes all the filters. It seems that BlueHost validates the address if it is comming from the server that hosts that domain. In gmail you usually get a warning that says that this email might not have being validated, but my email are comming fine with custom wordpress email functions. No extra plugin needed.
Prashant Bhandarkar says
Thank you so much. This was of great help. God Bless you!
Karmen says
Awesome tutorial!!!
Louise says
I have this working brilliantly with a Google apps for work account for a woocommerce solution on wordpress, thank you.
Should this work if I use a Google group mail instead of an account?
Thanks very much.
Brian Treiber says
I am not using Google apps for work, I have everything set up and connected. I tried to send a test email however I get a 405 not allowed error. I went into my cpanel and changed the mx records to the recommended” remote.” Still can’t send. Does this mean I need to use the less secure method?
Jason North says
I’m getting this error when I try to activate the plugin:
Plugin could not be activated because it triggered a fatal error. Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home3/north23/public_html/forcebrain/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/autoload.php on line 19
genie says
Hello, I use gmail-smtp plugin but it conflict with ultimate membership. Could you help me ?
I try another wp mail smtp but in the last feld: user account pass. Google app not allow to login from plugin. Pls help
Thank you
Leslie Andrews says
Clearly I’m doing something wrong. When I get to “add credentials” I’m getting this error message and can’t move forward.
Invalid Redirect: must end with a public top-level domain (such as .com or .org)
Any help would be great
WPBeginner Support says
If you look at the URL closely, you will notice that you are missing a . between domainname and the TLD, yours is examplecom when it should be example.com.
Administrador
Graham says
Thanks for the tutorial, but I get this error when I try to send a test email:
Connection: opening to ssl://smtp.gmail.com:587, timeout=300, options=array ()
SMTP ERROR: Failed to connect to server: Connection refused (111)
SMTP connect() failed.
Does it have something to with my site being secured with SSL?
Tony says
I’m having the same issue. Did you figure it out?
Tom says
Nice Article, I’m having a few issues to get this working. So I Deactivated the Plugin and tested a Contact Form to see if all was the same before setting up Gmail SMTP, unfotunately No Emails are being sent through now.
Even though the Gmail SMTP Plugin is NOT active, do we need to reset back to the default settings somehow?
WPBeginner Support says
Nope simply deactivating it would turn it off.
Administrador
Jenny says
Hi,
I have this all set up properly and the test email worked…I just commented on my own blog to see if I would get an email when a comment was posted but I unfortunately didn’t. Can someone help me figure out where I went wrong?
Sachin says
Hey thanks for the tutorial. Everything works fine in Setup, but when mail is being sent the site freezes for about 5 mins. site doesnt open at that time. It doesnt respond at that time. Any idea what might be causing this issue. But the point is mail is sent at last finally
WPBeginner Support says
Please contact your WordPress hosting provider. They may be able to help you better.
Administrador
crissy says
Hi,
I’m having problem with the test email send
Fatal error: Cannot redeclare class phpmailer in /home/mywebsite/wp-includes/class-phpmailer.php on line 29
please help
David says
Hi, I just installed this plugin, and everything went perfectly–thanks to your excellent tutorial! (I definitely couldn’t have done it without you.) My website’s outgoing email immediately started landing in people’s inboxes rather than in their spam folders.
But since I’m a novice at these matters and don’t know SMTP from RSVP, I did some reading on SMTP, and on one website I came across made this statement:
“Another strategy that hackers use: If your app sends email using SMTP, the IP address will be recorded in the Received header lines. Either scrub the original Received line [no explanation provided of how that’s done], or don’t use SMTP for email submission.”
Is this something I should be concerned about security-wise? Or does this plugin solve this problem somehow? And if not, how should I fix it?
Thanks!
WPBeginner Support says
You shouldn’t be concerned about it. Most popular email service providers and their spam filters can check if an email is originating from the IP address it claims to be coming from.
Administrador
Rob says
Thank YOU so much for this!! I’ll keep coming back for more!!
Travis says
Thanks so much for this tutorial.
Originally I had this all setup and working fine, but I moved my website and did some other fixes to it, and suddenly mailing stopped working.
Previously I spent some time trying to set it up and get it to work, but then it “stopped” working randomly.
Anyways, option #1 really saved me a major headache.
Christine Tabor says
I configured, and got the green go to go button… THANKS FOR THE STEP BY STEP…
(doing this on a client test site)…
BUT REGARDING GRAVITY FORMS (or any form plug in)… do I also need to change up the notification emails that I’ve used for the Gravity Forms submissions?
Is it ok for the “from” email I used in the configuration to be different than the gmail used to set i up?
The issue that started all this was client not getting his Gravity Form notifications.
SO, before I install on their live site… (which is ecommerce and SSL)… can you reply to this … and should I still use the TSL for the configuration? I wasn’t sure if a certificate on the site made any difference in configuring this.
Thanks,
Christine
WPBeginner Support says
No you don’t need to change notification emails.
It is OK, but to ensure maximum deliverability you should use the email address that is actually sending the email.
You should try with SSL first for the Gmail Configuration.
Administrador
Christine says
Thanks for reply…little bit more clarification please.
I set up an email…info@domain.com as a forwarder in cpanel, and I forward to their Verizon email.
I left the Verizon email in the GF notification list, added the info email, and another alternate email.
So the info email is the one in Gmail plugin set up that is sending the email…is it ok that it’s a forwarder?
Also, when I set up the plugin, I used a gmail I had created … CompanyName@gmail.com
But not using it as the sending email or anywhere else.
I sent a test and it appears all worked… Should I go back and change to SSL instead of the TSL or leave as is?
Thanks again…
Christine
WPBeginner Support says
Sounds about right. However, if it was up to us we would use the Gmail address as the sender and add the forwarding email address as the Reply-to address.
Tribhuwan Bhatt says
Thank You
Tim R says
Doesn’t work for me on April 14, 2016.
Things I do rarely work.
Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()
SMTP ERROR: Failed to connect to server: Network is unreachable (101)
SMTP connect() failed.
Mailer Error: SMTP connect() failed.
Any point in fussing with this ?
zse says
Hi,
I have this same error.
Did you solved this problem?
Regards
Tim R says
Here’s a follow up:
Settings of my web host’s server made this impossible.
Switched hosts and now it works easy as pie.
Don’t forget to change settings on gmail account to allow for unregistered apps (a search will discover many instructions to do that so I won’t add it here)
Monica says
Hey i tried allowing access for unregistered apps it still doesnt work for me.
I am getting the error:
Connection: opening to smtp.gmail.com:587, timeout=300, options=array ()
SMTP ERROR: Failed to connect to server: Connection refused (111)
SMTP connect() failed.
Any ideas ?
Bclose says
Hi ,
Thanks for this ticket ..i was fighting with my emial provider weblayer and nothing. it worked with your magic touch , one simple note .. by the end of Ouauth when explaining to create a fake local email you forgot to include that we must use MX record and what is is , i search on google and found ALT2.ASPMX.L.GOOGLE.COM, but this last simply thing could be a danwfault for all readers
Either way thank you..a lot!
Kay says
Thank you soooooo much for this! Worked like a charm. The instructions are 100% on point!
Tyler says
Anyone get this working with google apps email? I’ve created API credentials. SMTP status is green. But Test email says connection refused. Already set mx to remote on godaddy. Are there any security setting ls in google apps email that have to be configured?
TJ says
Nice article, was able to install the plugin and it sent the email from the plugin test email.
Fails when using Contact Form 7, any recommendations for a contact form plugin that this might work with?
Thanks
WPBeginner Support says
You can try it with WPForms.
Administrador
Muhammad says
thanks for the nice post.i was thinking to set up this for my site.
Ripul says
Interesting, however I am getting this error : “Error: redirect_uri_mismatch”
Ripul says
I forgot to mention I am testing this on Localhost.
Rashmirekha Moharana says
Hi Syed.
Thanks a lot for such a wonderful solution. Let me implement and see.
Kudos to you.