MimeBodyPart mbp = new MimeBodyPart();
mbp.setText(eMaster.getContent());
multipart.addBodyPart(mbp);
内容为:<html><b>Hello How are you doing....</b></html>
它在带有html标签的邮件中显示,为什么?请帮助我。
答案 0 :(得分:4)
试试这个
mbp.setContent("<h1>Hello</h1>", "text/html");
答案 1 :(得分:0)
mbp.setText(eMaster.getContent(), "utf-8", "html");