And there is more:
The
http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/mail/javamail/MimeMessageHelper.html
MimeMessageHelper gives more options to send both plain text and html
formatted mail in the same message (to support all kinds of email clients),
as well as inline content and email attachments:
MimeMessage message = mailSender.createMimeMessage();
// add recipient, sender and subject
MimeMessageHelper helper = new MimeMessageHelper(message, true, charset);
helper.setText(plainMessage, htmlMessage);
helper.addInline("someImage", new ClassPathResource("img/someImage.jpg"));
helper.addAttachment("document.pdf", new
ClassPathResource("doc/document.pdf"));
/Mattias
--
View this message in context:
http://camel.465427.n5.nabble.com/Email-character-encoding-tp510814p511118.html
Sent from the Camel - Users mailing list archive at Nabble.com.