Discuss / Python / 不知为何

不知为何

Topic source

Nicktimebreak

#1 Created at ... [Delete] [Delete and Lock User]

用qq邮箱给163发不会出错,用163给qq发就出来smtpdataerror

沙志刚

#2 Created at ... [Delete] [Delete and Lock User]

163邮箱发送邮件,要求必须有subject,否则返回DataError 加一句msg['Subject'] = "hello" 就好了

多谢,我就是这个问题

劲晨

#4 Created at ... [Delete] [Delete and Lock User]

在msg = MIMEText下面加么? 如: msg = MIMEText('hello, this email is send by Python.','plain','utf-8') msg['Subject'] = Header('form XXX','utf-8').encode() 加了以后还会出现 stmpdataerror


  • 1

Reply