The SMTP server requires a secure connection or the client was not authenticated. The server respons
our basic code to send mail(using gmail) is
as
lets run this code & see the results
we got this error
The SMTP server requires a secure connection or
the client was not authenticated.
The server response was: 5.7.0 Authentication Required.
to solve this issue, we just need only 2 options as follows
login your gmail account(which is sending mail)
1. 2-Step Verification – make sure this is enable
2. App passwords – genrate mail password here
paste newly generated pasword in your code like in gmail pasword
and re-run code
here is the solution
by timeoutexpired
linux smtp server
Brother, superb… It worked for me
My problem was solved with this solution. Thank you.
tx baby
Perfect thank you man
Thanks
Thank you
thanks bro its was helpful
good, i want to have a baby for you, bro, problem solved
thanks yaaarrrrrr
Perfect !! 🙂
Thank you, this really worked and I looked for this a lot!
It always seems to easy to be true. Thank you!
I LOVE YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUU !! xD
Thank you very much!!
30 May 2022 – "Less secure apps" option was removed. Excelent video -"how to fix". Thanks for work!
Holyyyyy fuckk I spent 2 hours trying to fix this shit, you saved my ass dude thanks 🙏🏻
nice bro, very helful
thank you man, this was beyond helpful!
App Password not showing .. I've only 2 option ..2-Step Verification and Use your phone to sign in
Thanks, I spent hours to find good answer. This works correctly with new google rules !