当应用程序发送 html 多部分电子邮件时,outlook 无法正确呈现。我们正在使用 spring org.springframework.mail.javamail.MimeMessagePreparator 和org.springframework.mail.javamail.JavaMailSenderImpl
它将电子邮件呈现为文本,看起来像这样......
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_87_599524958.1351800925134"
------=_Part_87_599524958.1351800925134
Content-Type: multipart/related;
boundary="----=_Part_88_222697382.1351800925134"
------=_Part_88_222697382.1351800925134
Content-Type: multipart/alternative;
boundary="----=_Part_89_1958386200.1351800925181"
------=_Part_89_1958386200.1351800925181
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
...
... <<< some text here >>>
...
------=_Part_89_1958386200.1351800925181
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
...
... << here it prints html text >>
...
...