Adding UTF-8 alternative parts.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   The_Dude
Posted On:   Tuesday, July 29, 2003 05:03 AM

How do you specify and correctly add UTF-8 text/plain and text/html parts to an email?

			
Multipart alternative = new MimeMultipart("alternative");
BodyPart textPlain = new MimeBodyPart();
textPlain.setText("some text" /* , */);
alternative.addBodyPart(textPlain);
...


There is no method similiar to:


MimeMessage().setText(java.lang.String text, java.lang.String charset)


			
MimeMessage().setText("some UTF-8 text", "UTF-8");
About | Sitemap | Contact