On Wed, May 27, 2009 at 6:03 PM, Arin <[email protected]> wrote:
>
> Instead of sending from email id and subject by sendBodyAndHeaders argument,
> I want to set it in the camel-context.xml. Can anyone suggest me how I can
> proceed with that...

These values can be set as a header and there is a <setHeader> XML tag

Something like this:
<setHeader name="subject"><constant>Hello World</constant></setHeader>

And if you need to set multiple values just add another setHeader below.


> --
> View this message in context: 
> http://www.nabble.com/How-to-set-from-id-and-subject-of-an-email-in-camel-context.com-tp23745547p23745547.html
> Sent from the Camel Development 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

Reply via email to