The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. Learn more at
Send mail error
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

ajay chauhan76 reputationPosted Dec 19, 2022, 7:10 AM EST
Less secure app option is removed by gmail. so you just need to registered your contact number with your gmail from which you try to sent email. After that in security you got option for third party login create a new for third party app for send mail.
Use this password in your code.
1. go security recomendations
2. Access this by 2-step verification this is new service on gmail.
Sachin SinghRank #66 · 26.2K reputationPosted Dec 19, 2022, 12:48 AM EST
you have to enable Less Secure Sign-In (or Less secure app access) in your google account.
Vishal JoshiRank #377 · 6.7K reputationPosted Dec 19, 2022, 3:20 AM EST
Hello
You need to disable two-step verification and enable Allow less secure apps access.
Please check below link:
https://www.stechies.com/mail-not-accepted-from-server-authentication-required/
Thank You
Sachin SinghRank #66 · 26.2K reputationPosted Dec 19, 2022, 9:38 AM EST
Yes correct , follow what @Ajay Chauhan recommended.