camel-users mailing list archives

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

Spring has a interface called 
http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/mail/javamail/JavaMailSender.html
JavaMailSender . With it one can create a 
http://java.sun.com/products/javamail/javadocs/javax/mail/internet/MimeMessage.html
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

mailSender.sendMessage(mailMessage);
 
-- 
View this message in context: http://camel.465427.n5.nabble.com/Email-character-encoding-tp510814p511111.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message