【发布时间】:2011-06-02 15:57:47
【问题描述】:
如何创建包含相同内容的文本和 HTML 版本的电子邮件?
当然,我想知道如何设置 freemarker 模板或将要发送的消息的标题。
当我查看 MIME 格式的消息多部分消息的来源时,我每次都会在收件箱中收到这些消息,而这就是其中的内容:
This is a multi-part message in MIME format.
------=_NextPart_000_B10D_01CBAAA8.F29DB300
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
...Text here...
------=_NextPart_000_B10D_01CBAAA8.F29DB300
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html><body> html code here ... </body></html>
【问题讨论】:
标签: html spring email text mime