mirror of https://github.com/M66B/FairEmail.git
Cleanup
This commit is contained in:
parent
a11e86016c
commit
ba2570d34b
|
@ -336,15 +336,7 @@ public class MessageHelper {
|
||||||
String plainContent = HtmlHelper.getText(body.toString());
|
String plainContent = HtmlHelper.getText(body.toString());
|
||||||
|
|
||||||
StringBuilder htmlContent = new StringBuilder();
|
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.toString()).append("\n");
|
||||||
htmlContent.append("</body>").append("\n");
|
|
||||||
htmlContent.append("</html>").append("\n");
|
|
||||||
|
|
||||||
BodyPart plainPart = new MimeBodyPart();
|
BodyPart plainPart = new MimeBodyPart();
|
||||||
plainPart.setContent(plainContent, "text/plain; charset=" + Charset.defaultCharset().name());
|
plainPart.setContent(plainContent, "text/plain; charset=" + Charset.defaultCharset().name());
|
||||||
|
|
Loading…
Reference in New Issue