|
@@ -177,7 +177,7 @@ public class EmailUtil {
|
|
|
String contentType = part.getContentType();
|
|
|
if(contentType.indexOf("charset=") != -1){
|
|
|
contentType = contentType.substring(contentType.indexOf("charset=")+8,contentType.length());
|
|
|
- FileUtil.writeFile(new File(savePath), partContent.toString(),contentType);
|
|
|
+ FileUtils.write(new File(savePath), partContent.toString(),contentType.toUpperCase());
|
|
|
}else{
|
|
|
FileUtil.writeFile(savePath, partContent.toString());
|
|
|
}
|