PHP Classes

Gmail application password

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  Gmail application password  >  (Un) Subscribe thread alerts  
Subject:Gmail application password
Summary:I get Username and Password not accepted when using
Messages:4
Author:Alexis Lopez Vidal
Date:2020-07-27 14:38:30
 

  1. Gmail application password   Reply   Report abuse  
Picture of Alexis Lopez Vidal Alexis Lopez Vidal - 2020-07-27 14:38:30
I get Username and Password not accepted when using the application password generated from my google account. Anyone knows how to configure this properly? Thanks!

  2. Re: Gmail application password   Reply   Report abuse  
Picture of Alexis Lopez Vidal Alexis Lopez Vidal - 2020-07-27 15:05:42 - In reply to message 1 from Alexis Lopez Vidal
Solved. I needed to activate "Less secure apps" on the g-Suite config.

  3. Re: Gmail application password   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2020-07-28 05:52:52 - In reply to message 1 from Alexis Lopez Vidal
Hello Alexis,

Good to know that enabling the Less Secure Application helped you to solve this problem.

We have also used GSuite account with this class to send email from PHP and we used it in conjunction with the MIME Message composing and sending class to make it easier to compose HTML and text messages, maybe with attachments and other email features.

You can find the MIME Message package here:

phpclasses.org/package/9-PHP-PHP-ma ...

  4. Re: Gmail application password   Reply   Report abuse  
Picture of Alexis Lopez Vidal Alexis Lopez Vidal - 2020-07-28 07:21:49 - In reply to message 3 from Manuel Lemos
Yeah Manuel, I'm doing exactly that right now. Thanks for such a great class :)