且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用python通过gmail发送电子邮件?

更新时间:2022-11-17 07:59:47

Google 最近加强了安全性.直接使用用户名/密码的应用程序已被停用.所有用户仍然可以在他们的安全设置中重新激活这些安全性较低的应用程序,因为您已经阅读了您在问题中提供的链接.这是目前唯一的解决方案.

Google has recently tightened their security. Application that use username/password directly have been deactivated. All users are still able to reactivate these less secure application in their security settings as you have been reading in the link you gave in your question. This is the only solution at this point.

另一种方法是使用其他 SMTP 服务器进行发送.

The alternative would be to use an other SMTP server for sending.