最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

【未解决】python中smtp发送QQ邮件出错:smtplib.SMTPDataError 550 Error content rejected mail.qq.com rejectedmail.html

Python crifan 3920浏览 0评论

折腾:

【已解决】Python中smtp如何发送多个收件人地址且带名字的且可以被格式化

期间,经过多次测试smtp发送QQ邮件,貌似导致QQ邮件系统检测为垃圾邮件了?

直接拒绝发送了。

分隔换成分号试试

结果出错:

    smtpObj.sendmail(sender, receiverList, msgStr)

  File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py”, line 751, in sendmail

    raise SMTPDataError(code, resp)

smtplib.SMTPDataError: (550, ‘Error: content rejected.http://mail.qq.com/zh_CN/help/content/rejectedmail.html‘)

想要打开:

http://mail.qq.com/zh_CN/help/content/rejectedmail.html

看看吧,结果现在页面也不存在了:

结果又出现其他错误:

    smtpObj.sendmail(sender, receiverList, msgStr)

  File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py”, line 751, in sendmail

    raise SMTPDataError(code, resp)

smtplib.SMTPDataError: (550, ‘Error: content rejected.http://mail.qq.com/zh_CN/help/content/rejectedmail.html‘)

log是:

send: ‘ehlo licrifandeMacBook-Pro.local\r\n’

reply: ‘250-smtp.qq.com\r\n’

reply: ‘250-PIPELINING\r\n’

reply: ‘250-SIZE 73400320\r\n’

reply: ‘250-AUTH LOGIN PLAIN\r\n’

reply: ‘250-AUTH=LOGIN\r\n’

reply: ‘250-MAILCOMPRESS\r\n’

reply: ‘250 8BITMIME\r\n’

reply: retcode (250); Msg: smtp.qq.com

PIPELINING

SIZE 73400320

AUTH LOGIN PLAIN

AUTH=LOGIN

MAILCOMPRESS

8BITMIME

send: ‘AUTH PLAIN ADg0NDgzNDIzQHFxLmNvbQB3d2dsY2RyaHR4YWhiaGdq\r\n’

reply: ‘235 Authentication successful\r\n’

reply: retcode (235); Msg: Authentication successful

send: u’mail FROM:<84483423@qq.com> size=617\r\n’

reply: ‘250 Ok\r\n’

reply: retcode (250); Msg: Ok

send: u’rcpt TO:<crifan2003@163.com>\r\n’

reply: ‘250 Ok\r\n’

reply: retcode (250); Msg: Ok

send: u’rcpt TO:<admin@crifan.com>\r\n’

reply: ‘250 Ok\r\n’

reply: retcode (250); Msg: Ok

send: ‘data\r\n’

reply: ‘354 End data with <CR><LF>.<CR><LF>\r\n’

reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF>

data: (354, ‘End data with <CR><LF>.<CR><LF>’)

send: ‘Content-Type: text/plain; charset=”utf-8″\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: base64\r\nFrom: =?utf-8?b?56S86LKMUVEgPDg0NDgzNDIzQHFxLmNvbT4=?=\r\nTo: crifan2003@163.com, admin@crifan.com\r\nSubject: =?utf-8?b?W+mrmOS7t+agvF0gdGl0bGXkuK3mlocgTWFkZGVuIE5GTCAxNiBmb3IgWGJv?=\r\n =?utf-8?q?x_One?=\r\n\r\nW+mrmOS7t+agvF0gdGl0bGXkuK3mlocgTWFkZGVuIE5GTCAxNiBmb3IgWGJveCBPbmUKICAgICAg\r\nICBOb3QgYnV5IGh0dHBzOi8vd3d3Lm1pY3Jvc29mdC5jb20vZW4tdXMvc3RvcmUvZC9tYWRkZW4t\r\nbmZsLTE2LWZvci14Ym94LW9uZS85M3M1dzZiZGcyNTAvbGdrcyB0aXRsZeS4reaWhyBNYWRkZW4g\r\nTkZMIDE2IGZvciBYYm94IE9uZSBmb3IgY3VycmVudCBwcmljZSAkMjk5LjAwIGV4cGVjdGVkIHBy\r\naWNlICQxOTkuMDAK\r\n.\r\n’

reply: ‘550 Error: content rejected.http://mail.qq.com/zh_CN/help/content/rejectedmail.html\r\n’

reply: retcode (550); Msg: Error: content rejected.http://mail.qq.com/zh_CN/help/content/rejectedmail.html

data: (550, ‘Error: content rejected.http://mail.qq.com/zh_CN/help/content/rejectedmail.html‘)

send: ‘rset\r\n’

reply: ‘250 Ok\r\n’

reply: retcode (250); Msg: Ok

以为是header没有format,所以给from和to都去header格式化,也还是同样问题。

感觉内容被监控了。

qq mail rejectedmail

QQ邮件群发的误区——群发QQ邮箱退信之恼 – 邮件群发软件 邮件群发 QQ邮件群发

[CPyUG] Python发送邮件问题 – Google Groups

新浪,QQ邮箱拒收邮件,如何解决? – ChinaUnix.net – Powered by Discuz!

被封IP了?

phpmailer用QQ的SMTP服务器发送邮件出现的错误。 – 贵贵的博客 – 开发|架构|开源|共享

【总结】

暂时貌似没有什么好办法,感觉IP被禁止的感觉。

转载请注明:在路上 » 【未解决】python中smtp发送QQ邮件出错:smtplib.SMTPDataError 550 Error content rejected mail.qq.com rejectedmail.html

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
56 queries in 0.080 seconds, using 18.30MB memory