flask 用户验证接收不到邮件,代码照抄的,头疼。希望帮我看下

2017-05-14 13:17:57 +08:00
 bighu
程序没有报错,就是可不到邮件,不知道哪里出了问题
send: 'ehlo [192.168.1.101]\r\n'
reply: b'250-mail\r\n'
reply: b'250-PIPELINING\r\n'
reply: b'250-AUTH LOGIN PLAIN\r\n'
reply: b'250-AUTH=LOGIN PLAIN\r\n'
reply: b'250-coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrusxxSUCa0xDrUUUUj\r\n'
reply: b'250-STARTTLS\r\n'
reply: b'250 8BITMIME\r\n'
reply: retcode (250); Msg: b'mail\nPIPELINING\nAUTH LOGIN PLAIN\nAUTH=LOGIN PLAIN\ncoremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrusxxSUCa0xDrUUUUj\nSTARTTLS\n8BITMIME'
send: 'STARTTLS\r\n'
reply: b'220 Ready to start TLS\r\n'
reply: retcode (220); Msg: b'Ready to start TLS'
send: 'ehlo [192.168.1.101]\r\n'
reply: b'250-mail\r\n'
reply: b'250-PIPELINING\r\n'
reply: b'250-AUTH LOGIN PLAIN\r\n'
reply: b'250-AUTH=LOGIN PLAIN\r\n'
reply: b'250-coremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrTpkykUCa0xDrUUUUj\r\n'
reply: b'250-STARTTLS\r\n'
reply: b'250 8BITMIME\r\n'
reply: retcode (250); Msg: b'mail\nPIPELINING\nAUTH LOGIN PLAIN\nAUTH=LOGIN PLAIN\ncoremail 1Uxr2xKj7kG0xkI17xGrU7I0s8FY2U3Uj8Cz28x1UUUUU7Ic2I0Y2UrTpkykUCa0xDrUUUUj\nSTARTTLS\n8BITMIME'
send: 'AUTH PLAIN ADEzMTY2MzM3OTE5QDE2My5jb20AYTEyMzEyMw==\r\n'
reply: b'235 Authentication successful\r\n'
reply: retcode (235); Msg: b'Authentication successful'
send: 'mail FROM:<13166337919@163.com>\r\n'
reply: b'250 Mail OK\r\n'
reply: retcode (250); Msg: b'Mail OK'
send: 'rcpt TO:<626825701@qq.com>\r\n'
reply: b'250 Mail OK\r\n'
reply: retcode (250); Msg: b'Mail OK'
send: 'data\r\n'
reply: b'354 End data with <CR><LF>.<CR><LF>\r\n'
reply: retcode (354); Msg: b'End data with <CR><LF>.<CR><LF>'
data: (354, b'End data with <CR><LF>.<CR><LF>')
send: b'Content-Type: multipart/mixed; boundary="===============5894479498722303218=="\r\nMIME-Version: 1.0\r\nSubject: [Flasky] Confirm Your Account\r\nFrom: =?utf-8?q?Flasky_Admin?= <13166337919@163.com>\r\nTo:
626825701@qq.com\r\nDate: Sun, 14 May 2017 12:44:58 +0800\r\nMessage-ID: <149473709779.8096.5644776744267083978@THINKPAD-PC>\r\n\r\n--===============5894479498722303218==\r\nContent-Type: multipart/alternative;\
r\n boundary="===============8736041487175388237=="\r\nMIME-Version: 1.0\r\n\r\n--===============8736041487175388237==\r\nContent-Type: text/plain; charset="utf-8"\r\nMIME-Version: 1.0\r\nContent-Transfer-Encodin
g: 7bit\r\n\r\nDear asdfasdf,\r\n\r\nWelcome to Flasky!\r\n\r\nTo confirm your account please click on the following link:\r\n\r\nhttp://127.0.0.1:5000/auth/confirm/eyJhbGciOiJIUzI1NiIsImlhdCI6MTQ5NDczNzA5NywiZXh
wIjoxNDk0NzQwNjk3fQ.eyJjb25maXJtIjoxfQ.w9GNmAwREq0QrnWfd_4YUwSPzD1vOYod5JyV3nZX3l8\r\n\r\nSincerely,\r\n\r\nThe Flasky Team\r\n\r\nNote: replies to this email address are not monitored.\r\n--===============873604
1487175388237==\r\nContent-Type: text/html; charset="utf-8"\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: 7bit\r\n\r\n<p>Dear asdfasdf,</p>\r\n<p>Welcome to <b>Flasky</b>!</p>\r\n<p>To confirm your account p
lease <a href="http://127.0.0.1:5000/auth/confirm/eyJhbGciOiJIUzI1NiIsImlhdCI6MTQ5NDczNzA5NywiZXhwIjoxNDk0NzQwNjk3fQ.eyJjb25maXJtIjoxfQ.w9GNmAwREq0QrnWfd_4YUwSPzD1vOYod5JyV3nZX3l8">click here</a>.</p>\r\n<p>Alter
natively, you can paste the following link in your browser\'s address bar:</p>\r\n<p>http://127.0.0.1:5000/auth/confirm/eyJhbGciOiJIUzI1NiIsImlhdCI6MTQ5NDczNzA5NywiZXhwIjoxNDk0NzQwNjk3fQ.eyJjb25maXJtIjoxfQ.w9GNmA
wREq0QrnWfd_4YUwSPzD1vOYod5JyV3nZX3l8</p>\r\n<p>Sincerely,</p>\r\n<p>The Flasky Team</p>\r\n<p><small>Note: replies to this email address are not monitored.</small></p>\r\n--===============8736041487175388237==--
\r\n\r\n--===============5894479498722303218==--\r\n.\r\n'
reply: b'250 Mail OK queued as smtp7,C8CowAAHnTgw4RdZBNcoFA--.2907S3 1494737201\r\n'
reply: retcode (250); Msg: b'Mail OK queued as smtp7,C8CowAAHnTgw4RdZBNcoFA--.2907S3 1494737201'
data: (250, b'Mail OK queued as smtp7,C8CowAAHnTgw4RdZBNcoFA--.2907S3 1494737201')
send: 'quit\r\n'
reply: b'221 Bye\r\n'
reply: retcode (221); Msg: b'Bye'

这个也没有报错,代码是我直接拷下来了,邮箱这我改成了 163 邮箱
3368 次点击
所在节点    Python
4 条回复
tumbzzc
2017-05-14 13:20:30 +08:00
让我看什么?
shuirong1997
2017-05-14 13:27:15 +08:00
题主你既然学 flask,知道 cocde.cc 吗? 那里面都是学 flask 的,去吧,皮卡丘。
bighu
2017-05-14 13:46:05 +08:00
@shuirong1997 我去看了下找到答案,我代码没错,全部进入垃圾邮件了尴尬!
just1
2017-05-14 13:47:07 +08:00
追求到达率用邮件推送吧

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

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

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

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

© 2021 V2EX