使用Gmail smtp发信,开通专用密码的方法

2021-07-11T03:18:55

Gmail 的smtp 很稳定,首先是在gmail 设置里开通IMAP

接下来有两种方式可以让gmail smtp 成功发信,这两种方法都需要在google 账户设置里完成:

第一种,设置“允许不够安全的应用使用您的账号”为启用,直达链接 https://myaccount.google.com/lesssecureapps 。这种方式是很方便,但在程序里使用账户的密码,可能在以后会带来不便,为了安全,建议使用第二种。

第二种,使用专用密码。 直达链接 https://security.google.com/settings/security/apppasswords 打开这个链接你可能会看到“您的帐号不支持您正在尝试的设置。”的提示。你需要先开通google 账户登录二次验证。

 

via。https://pylist.com/t/1539308109 

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »