【问题标题】:How do I send emails through gmail now that app passwords have been removed?既然应用程序密码已被删除,我该如何通过 gmail 发送电子邮件?
【发布时间】:2022-12-11 01:52:34
【问题描述】:

尝试通过 gmail 使用 python 发送电子邮件时,我需要一个应用程序密码。现在谷歌已经删除了这些,我将如何使用 python 发送电子邮件?

【问题讨论】:

  • 是什么让你说谷歌已经删除了应用密码?

标签: python gmail


【解决方案1】:

应用程序密码可用于登录到谷歌 smtp 服务器,您需要在您的谷歌帐户上启用 2fa 才能创建应用程序密码。

Google 没有禁用apps passwords,他们禁用了less secure apps

只需创建一个应用程序密码,并在您的代码中使用它代替您的标准 gmail 密码。 Quick fix for SMTP username and password not accepted error

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-06-10
    • 2020-01-06
    • 1970-01-01
    • 2017-10-06
    • 2014-05-23
    • 2016-08-25
    • 2012-01-07
    相关资源
    最近更新 更多