I've been using PHPMailer for a long time, sending emails using Google credentials (login and password) by enabling the "Less secure apps"
option in Google settings.
Google is notifying that after May 30, 2022, Google will not allow the use of "less secure apps"
to send emails.
Less secure apps and your Google Account
Is there another way to send emails using Gmail SMTP from PHPMailer without using the "Less Secure Applications"
feature?
This method works for me, you can try this:
For reference, please visit GitHub:
Step 2: Go to the website root directory and run the following command