【发布时间】:2017-04-18 21:53:33
【问题描述】:
当我尝试使用 Play 框架的电子邮件实用程序将以下注释作为“text/html”发送时,新行没有被保留
**Original string**
this is a test
this is a test
但我在电子邮件中看到的是换行符在 Outlook 或 Java 中的某处被放弃
**Result**
this is a test this is a test
我已经尝试了下面的所有建议,将 br、\n、\r\n、\t\t 等添加到我的程序中,但仍然无法正确显示新行
How do I format a String in an email so Outlook will print the line breaks?
【问题讨论】:
标签: java html email playframework outlook