Can you file an issue in JIRA and if possible add a testcase? Thanks
So after a little debugging, it seems that the problems lies in the UISubject.encodeChildren method.
@Override public void encodeChildren(FacesContext facesContext) throws IOException { try { String subject = encode(facesContext, MailResponseWriter.TEXT_PLAIN_CONTENT_TYPE); String charset = findMessage().getCharset(); if (charset == null) { findMimeMessage().setSubject(subject); } else { findMimeMessage().setSubject(subject, charset); } } catch (MessagingException e) { throw new FacesException(e.getMessage(), e); } }
Thanks Pete! With your latest CVS commits I now have all the email functionality I need. I can send sync/async mails, and the subject and body parts are correctly encoded in utf-8.
Thanks again!
tazman
Using JBoss AS 4.2 CR1 fixed the problem :)