尽我所能,我无法在Outlook 14.0.7012.1000中的x行之后获得换行符。 Gmail和Outlook Web Access Light可以正确放置y行。
import smtplib
body = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx\r\nyyyyyyy"
text = "Subject: missing newline\r\n\r\n" + body
#from email.mime.text import MIMEText
#text = MIMEText(body).as_string()
s = smtplib.SMTP('exchange.company')
s.sendmail('', 'cees@company', text)
s.quit()
由于x(字母或空格)模式发生在我自动发送电子邮件的内容中,我想知道是否有其他人遇到此问题并找到了使用HTML电子邮件的解决方法。
答案 0 :(得分:1)
问题在于Outlook,而不在于您的电子邮件中。
关闭" 删除纯文字信息中的额外换行符"在Outlook中,一切都将是很好的。
参考: