|
@@ -177,6 +177,7 @@ public class EmailUtil {
|
|
String contentType = part.getContentType();
|
|
String contentType = part.getContentType();
|
|
String html = partContent.toString();
|
|
String html = partContent.toString();
|
|
try{
|
|
try{
|
|
|
|
+ logger.info(contentType+"========================"+html);
|
|
if(contentType.indexOf("charset=") != -1){
|
|
if(contentType.indexOf("charset=") != -1){
|
|
contentType = contentType.substring(contentType.indexOf("charset=")+8,contentType.length());
|
|
contentType = contentType.substring(contentType.indexOf("charset=")+8,contentType.length());
|
|
html = html.replace("charset="+contentType.toLowerCase(),"charset=UTF-8");
|
|
html = html.replace("charset="+contentType.toLowerCase(),"charset=UTF-8");
|