i am trying to send mail using phpmailer - google smtp - i tuned on less secure apps but the website redirects me to 403 forbidden page.

Perhaps you left out this

For your password, you need to turn on “Allow Less Secure Apps” in your Google Account, and it is recommended you turn on 2FA (two-factor authorization) and generate an App Password instead of using your real Google Account password.


Are you redirected to our 403 Forbidden page? If so, the problem may not be related to PHPMailer, but some other configuration. The URL of the page can trigger a 403 error.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.