camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pontus Ullgren <>
Subject Re: New to Camel, adding smtp completion notification using XML DSL
Date Fri, 14 Nov 2014 08:00:01 GMT

Simply set the body to the content you want in the email.
Something like this (pseudo code that is not tested) should do it

        <simple>File ${in.header.CamelFileName} has been processed</simple>

// Pontus

On Thu, Nov 13, 2014 at 4:29 PM, fidoedidoe <> wrote:
> Hi I'm new to camel (so forgive me for asking dumb question). Having worked a
> few examples and successfully created some test routes - I'd like to email
> recipient(s) on completion. Ultimately the intent would  be to email success
> / failure...but taking baby steps, just an email at the end of processing
> would be enough for me to expand my understanding.
> In my real code (not the pseudo below) I've successfully received an email
> *but* I cannot understand how to override the email body (currently it's the
> content of the message processed by direct:start - in my instance a zip
> file).
> I've experimented with <transform> (to transform the message/body before
> emailing) but that didn't appear to work.
> Any suggestions?!
> Kind regards
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

View raw message