The SMTP server requires a secure connection or the client was not authenticated. The server respons
HTML-код
- Опубликовано: 9 фев 2025
- 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
30 May 2022 - "Less secure apps" option was removed. Excelent video -"how to fix". Thanks for work!
My problem was solved with this solution. Thank you.
Thanks bro...you saved my time...I wasted 2 days for R&D...but atlast your accurate solution worked
Brother, superb... It worked for me
Thanks, I spent hours to find good answer. This works correctly with new google rules !
Thank you, this really worked and I looked for this a lot!
It always seems to easy to be true. Thank you!
thank you man, this was beyond helpful!
thanks my brotha..You saved my life..
calm bro =)))
thanks bro its was helpful
Holyyyyy fuckk I spent 2 hours trying to fix this shit, you saved my ass dude thanks 🙏🏻
App Password not showing .. I've only 2 option ..2-Step Verification and Use your phone to sign in
Enable 2 step verification
@@timeoutexpired8170 2-step verification is enabled but app password still not showing
thanks man, you have been very helpful
Thank you
Thank you very much!!
Thanks
Perfect thank you man
I LOVE YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUU !! xD
Perfect !! :)
nice bro, very helful
thanks yaaarrrrrr
tx baby