Hi Looks like a bug/feature we should support. Could you create a ticket in JIRA?
Link to JIRA from here: http://camel.apache.org/support.html On Mon, May 25, 2009 at 10:17 AM, rohitbrai <[email protected]> wrote: > > I am trying to set the content type of the mail I send using the contentType > header. That doesn't work, but it works if I put the contentType in the > endpoint uri. i.e. - > > <camel:setHeader headerName="contentType"> > <camel:constant>text/html</camel:constant> > </camel:setHeader> > > Has no effect, while this works - > > smtp://[email protected]?password=3pleripple&contentType=text/html > > But I am not able to set the charset and it always takes us-ascii > > So for the mail the content type header comes as - > Content-Type: text/html; charset=us-ascii > > I tried using > <camel:setHeader headerName="contentType"> > <camel:constant>text/html;charset=UTF-8</camel:constant> > </camel:setHeader> > > and also > > <camel:setHeader headerName="content-type"> > <camel:constant>text/html;charset=UTF-8</camel:constant> > </camel:setHeader> > > and > smtp://[email protected]?password=3pleripple&contentType=text/html;charset=UTF-8 > > but nothing works :( > Any idea what's wrong here??? > > Regards, > Rohit > -- > View this message in context: > http://www.nabble.com/Set-charset-to-utf-8-for-sending-emails-using-smtp-endpoint-tp23703094p23703094.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
