해결책을 찾았습니다. 문제가 없습니다.
String body ="<html><head></head><body><span>this is a test mail</span></body></html>
Multipart multiPart = new MimeMultipart("alternative"); // Create an "Alternative" Multipart message
MimeBodyPart text = new MimeBodyPart();
MimeBodyPart html = new MimeBodyPart();
text.setText(body.replaceAll("\\<[^>]*>","").replaceAll(" ","").replaceAll("&","&")); //set the text/plain version
html.setContent(Jsoup.parse(body).html(), "text/html"); //set the text/html version
multiPart.addBodyPart(text);
multiPart.addBodyPart(html);
message.setContent(multiPart);
출처
2013-02-26 05:30:34
n92