|
@ -239,7 +239,7 @@ public class MessageHelper { |
|
|
private String getHtml(Part part) throws MessagingException { |
|
|
private String getHtml(Part part) throws MessagingException { |
|
|
if (part.isMimeType("text/*")) |
|
|
if (part.isMimeType("text/*")) |
|
|
try { |
|
|
try { |
|
|
String s = (String) part.getContent(); |
|
|
|
|
|
|
|
|
String s = part.getContent().toString(); |
|
|
if (part.isMimeType("text/plain")) |
|
|
if (part.isMimeType("text/plain")) |
|
|
s = "<pre>" + s.replaceAll("\\r?\\n", "<br />") + "</pre>"; |
|
|
s = "<pre>" + s.replaceAll("\\r?\\n", "<br />") + "</pre>"; |
|
|
return s; |
|
|
return s; |
|
|