Hi, Simply set the body to the content you want in the email. Something like this (pseudo code that is not tested) should do it
<setBody> <simple>File ${in.header.CamelFileName} has been processed</simple> </setBody> // Pontus On Thu, Nov 13, 2014 at 4:29 PM, fidoedidoe <gavin.fow...@sagepub.co.uk> 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: > http://camel.465427.n5.nabble.com/New-to-Camel-adding-smtp-completion-notification-using-XML-DSL-tp5759060.html > Sent from the Camel - Users mailing list archive at Nabble.com.