camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mattias Severson <>
Subject Re: Email character encoding?
Date Thu, 24 Jun 2010 14:21:11 GMT

Spring has a interface called
JavaMailSender . With it one can create a
MimeMessage  that allows charsets to be specified in conjunction with the
subject and the message:

MimeMessage mailMessage = mailSender.createMimeMessage();
mailMessage.setSubject("Email subject", "ISO-8859-1");
mailMessage.setText("This is the email message", "ISO-8859-1");

// add sender, receiver, etc

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message