ah! Thank you, works as expected:
<route>
<from uri="direct:buildPage"/>
<setHeader headerName="currentBody"><simple>${body}</simple></setHeader>
<to uri="velocity://responseEmail.vm"/>
<setHeader headerName="mailTemplate"><simple>${body}</simple></setHeader>
<setBody><simple>headers.currentBody</simple></setBody>
<to uri="direct:paradigm"/>
</route>
...albeit not as clean as a "toHeader" option on the velocity component :)
--
View this message in context:
http://camel.465427.n5.nabble.com/Set-header-using-velocity-template-tp5750248p5750271.html
Sent from the Camel - Users mailing list archive at Nabble.com.