I have been using PHPMailer for a long time to send emails using Google credentials (login and password) by enabling the "Less secure app"
option in the Google settings.
As Google is notifying that after 30th May 2022, Google will not allow sending emails using the "Less secure app"
.
Less secure apps & your Google Account
Is there any other way to send emails using Gmail SMTP from PHPMailer without the "Less secure app"
feature?
This ways work for me, you can try this :