Posted By:
Eric_Maginniss
Posted On:
Tuesday, November 18, 2003 07:36 AM
This is a problem of encoding. When you create a MimePart to add to your mail, you need to set the content header type. Try this:
Message msg = new javax.mail.internet.MimeMessage(session);
MimeMultipart mp = new MimeMultipart("alternative");
MimeBodyPart textPart = new MimeBodyPart();
textPart.setText(text);
textPart.setHeader("Content-Type", "text/plain; charset=ISO_8859-1");
mp.addBodyPart(textPart);
msg.setContent(mp);