How do I encode the string that I want to send so that the message is mail safe?

John Zukowski

When you call setText(message) on the MimePart/MimeMessage this will encode the string for you using the platform's default character set. If you know the character set, you can call setText(message, charset), which will be faster for larger messages.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact