As I am trying to send Email from Php mailer from My Business Gmail(example: [email protected]) :
Have tried sending mail through Gmail from php mailer by generating app password from my personal Email id (Example: [email protected]) And It is working.
Same thing I am trying to do from my business (G-suit for Business) Gmail But I am not able to see Option to generate App Password as I it is visible in basic Gmail Account. And without app password Gmail does not allow password to be in plain text. Please Help me on this if someone have faced this kind of Issue.
As you've noticed, regular gmail and suite have differences. You have two options here:
PLAINandLOGINauth types.XOAUTH2authentication.There is a long article about using
XOAUTH2for gmail in the PHPMailer wiki. There are also code examples.The "less secure apps" option isn't really much less secure; credentials are in plain text (or lightly encoded), but the connection is protected by TLS.
There is more discussion of gmail authentication in the PHPMailer troubleshooting guide.