No, the charset property is set on the Exchange, you can't add it from
the message header.
You have to set it from a processor.
Willem
Mattias Severson wrote:
Thanks for the tip. I am currently on a "long-weekend" vacation, but I will
try when I return to work.
Do I have create a Process in order to set the Exhange.CHARSET_NAME on the
exchange is i possible to take a shortcut and add it to the camel email
headers directly, e.g.
Map<String, Object> camelEmailHeaders = new HashMap<String, Object>();
camelEmailHeaders.put(Exchange.CHARSET_NAME, "ISO-8859-1");
// add more email headers...
producerTemplate.sendBodyAndHeaders(emailRecipientUri, emailBody,
camelEmailHeaders);
/Mattias