sendGrid 纯文本的换行问题

项目中使用sendGrid发送邮件,并且要求纯文本格式,遇到了无法换行的问题(使用 )。

解决方案:

1. 在换行符前加空格(官方推荐的做法 https://sendgrid.com/docs/Classroom/Build/Format_Content/plain_text_emails_converted_to_html.html);

2. 把所有的文本内容放到 html 的<pre>元素中;

3. 大招: 默默地去检查你的账号吧,看看是不是把转换为html开关打开了。。。。。

原文地址:https://www.cnblogs.com/nanchen/p/6638201.html