Exactly.
I copy pasted the sniped from one of our routes which are more complex. But
as already mentioned, if you don't need any complex pre processing, your
valid route could also looks as below:
from("xxx")
  .enrich("stringtemplate:XXX", aggregationStrategie)
  .to("smtp:XXX"");

Best,
Christian

On Tue, Jan 10, 2012 at 11:55 AM, v_peter <v_pe...@ukr.net> wrote:

> Actually you can use "stringtemplate" or any other uri in "enrich".
> But using "direct" helps to split the process in separate logical steps.
> You
> can have "direct:generateEmailBody" and if you need to do anything else for
> the step you can simply update the route.
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-send-a-templated-mail-with-attachment-tp5125167p5133857.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to