-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GMail SMTP connect() failed #525
Comments
So, like the troubleshooting guide says, enable access for 'less secure apps' in your gmail account. The same applies to other clients that do not support XOAUTH2. Apple Mail on OS X and iOS supports XOAUTH2 with gmail, but I don't know about others. |
Is it necessary to turn on the less secure apps of my gmail account? why I'm asking this means am trying to do send email in production. |
Read the troubleshooting guide to help diagnose your problem. It's not necessary to enable less secure apps if you use XOAUTH2 authentication - look at the wiki for more info. |
Hi all,
i'm try to send eamil using gmail with my raspberry Pi (it it into my Home Lan).
I try to use exactly this example https://github.com/PHPMailer/PHPMailer/blob/master/examples/gmail.phps, but i've these errors:
So..i've read https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting, but i can not use oauth authentication, because my device (Raspberry pi) is into my LAN and i'm not able to specify to google an public host name.
My question is how can i solve the problem? I don't understand how other emails client as Thunderbird, Outlook, ecc can set correctly an gmail account without oauth authentication.
Thanks a lot and best Regards
The text was updated successfully, but these errors were encountered: