V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
s609926202
V2EX  ›  问与答

如何使用 Gmail SMTP 发送邮箱?

  •  
  •   s609926202 · 2017-11-20 16:54:10 +08:00 · 2422 次点击
    这是一个创建于 2558 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    4 条回复    2019-03-27 09:30:43 +08:00
    s609926202
        1
    s609926202  
    OP
       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
        2
    viosey  
       2017-11-20 17:08:42 +08:00 via iPhone
    要开 2FA,用应用密码
    s609926202
        3
    s609926202  
    OP
       2017-11-20 17:38:07 +08:00
    @viosey Ok 了
    cowpea
        4
    cowpea  
       2019-03-27 09:30:43 +08:00
    @s609926202 啊,原谅我挖。账号密码信息要隐藏一下的,base64 编码的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3068 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:51 · PVG 21:51 · LAX 05:51 · JFK 08:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.