How to send emails from GMail account using PHPMailer now that Google has discontinued the less secure application?
P粉2573421662023-11-08 10:40:35
0
1
664
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? ? ?
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.
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.