如何使用 Gmail SMTP 发送邮箱?

2017-11-20 16:54:10 +08:00
 s609926202

我已经开启了允许不够安全的应用,,但是还是无法发送邮件。。。

2451 次点击
所在节点    问与答
4 条回复
s609926202
2017-11-20 17:05:40 +08:00
这是一些信息:
2017-11-20 09:05:00 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP z7sm6797750qtz.40 - gsmtp
2017-11-20 09:05:00 CLIENT -> SERVER: EHLO www.trueniu.com
2017-11-20 09:05:00 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [54.172.19.40]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
2017-11-20 09:05:00 CLIENT -> SERVER: AUTH LOGIN
2017-11-20 09:05:00 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2017-11-20 09:05:00 CLIENT -> SERVER: czYwOTkyNjIwMkBnbWFpbC5jb20=
2017-11-20 09:05:00 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2017-11-20 09:05:00 CLIENT -> SERVER: U3gxOTkyMTEyOSFAIw==
2017-11-20 09:05:01 SERVER -> CLIENT: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbur
534-5.7.14 S_l4jy-EJKrK2IupSssBOYwZxRzVjqeSGKl0zGfsV_yiLTfQvDOhAWkMDVSsro03uALvef
534-5.7.14 Q0nDJO07pej2wkUtbyVNPtMtBGdWUJTj0aGgDs9hv-Hv8bea3HfMAl0iq5jOw9u5Z4wP4d
534-5.7.14 9UkmIkgLjY-DmS3BF-fCdXZ3Y2pq6mYisBsOkGY5tVFIkhJ218EUXlvtu02SHRFpXdJXe7
534-5.7.14 FnDUtB8ofSuAZdrWEtRK0k9gJbpGU> Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 z7sm6797750qtz.40 - gsmtp
2017-11-20 09:05:01 SMTP ERROR: Password command failed: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbur
534-5.7.14 S_l4jy-EJKrK2IupSssBOYwZxRzVjqeSGKl0zGfsV_yiLTfQvDOhAWkMDVSsro03uALvef
534-5.7.14 Q0nDJO07pej2wkUtbyVNPtMtBGdWUJTj0aGgDs9hv-Hv8bea3HfMAl0iq5jOw9u5Z4wP4d
534-5.7.14 9UkmIkgLjY-DmS3BF-fCdXZ3Y2pq6mYisBsOkGY5tVFIkhJ218EUXlvtu02SHRFpXdJXe7
534-5.7.14 FnDUtB8ofSuAZdrWEtRK0k9gJbpGU> Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14 Learn more at
534 5.7.14 https://support.google.com/mail/answer/78754 z7sm6797750qtz.40 - gsmtp
2017-11-20 09:05:01 SMTP Error: Could not authenticate.
2017-11-20 09:05:01 CLIENT -> SERVER: QUIT
2017-11-20 09:05:01 SERVER -> CLIENT: 221 2.0.0 closing connection z7sm6797750qtz.40 - gsmtp
2017-11-20 09:05:01 SMTP Error: Could not authenticate.
viosey
2017-11-20 17:08:42 +08:00
要开 2FA,用应用密码
s609926202
2017-11-20 17:38:07 +08:00
@viosey Ok 了
cowpea
2019-03-27 09:30:43 +08:00
@s609926202 啊,原谅我挖。账号密码信息要隐藏一下的,base64 编码的。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/407970

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX