Google offers a "Less Secure Apps" feature to send emails from third-party apps. Since Google disabled this setting, our PHPMailer stopped sending emails. Is anyone facing the same problem? ? ?
P粉0345716232023-11-09 09:00:52
I agree with ADyson above. Essentially just explaining the meaning of the link he posted:
Deal with this problem today. Just go to your Gmail account, then Manage your Google Account > Security.
Enable two-step verification from here, once completed you will see the "App Password" option appear under the two-step verification option. Click this button, name the device you want to use, then copy and paste the generated password you were given into your code, replacing the old password you used.
I have now done this for our office printer and a python script where I have to automatically send timesheets to everyone.