This commit is contained in:
M66B 2019-05-03 21:51:37 +02:00
parent a11e86016c
commit ba2570d34b
1 changed files with 0 additions and 8 deletions

View File

@ -336,15 +336,7 @@ public class MessageHelper {
String plainContent = HtmlHelper.getText(body.toString());
StringBuilder htmlContent = new StringBuilder();
htmlContent.append("<!DOCTYPE html>").append("\n");
htmlContent.append("<html>").append("\n");
htmlContent.append("<head>").append("\n");
htmlContent.append("<meta charset=\"utf-8\" /> ").append("\n");
htmlContent.append("</head>").append("\n");
htmlContent.append("<body>").append("\n");
htmlContent.append(body.toString()).append("\n");
htmlContent.append("</body>").append("\n");
htmlContent.append("</html>").append("\n");
BodyPart plainPart = new MimeBodyPart();
plainPart.setContent(plainContent, "text/plain; charset=" + Charset.defaultCharset().name());