camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Email character encoding?
Date Fri, 25 Jun 2010 09:39:01 GMT
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.


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

View raw message