By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

MimeMessage ignors the mail.mime.charset

P: n/a

I'm using javax.mail and javax.activation to send mails.
Nearly everything is working fine.

The only thing is, that the MimeMessage ignores the mail.mime.charset.
I can type there anything it is like it ignores this value.
If I send a text with Czech or Polish letters all letters are demolished.

Did anybody has a idea or the same problem?

Enclose you will find the relevant parts of code.


Session v_s_Session;
Properties v_p_Properties = System.getProperties();
v_p_Properties.setProperty("mail.transport.protoco l", "smtp");
v_p_Properties.put("", a_st_Server);
v_p_Properties.put("mail.mime.charset", "UTF-8");

m_M_Message = new MimeMessage(v_s_Session);
m_mp_multiPart = new MimeMultipart();
v_mbp_body = new MimeBodyPart();
v_mbp_body.setContent(a_st_text, "text/html");
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.