On Fri, Jan 11, 2013 at 6:54 AM, tamil13 <tamilvanan...@gmail.com> wrote:
> I tried. but dont know how to do it. Could any one post respective xml code
> for sending mail?
>

You can define a Camel route in XML that routes to a smtp endpoint
which then sends the email.

<route>
   <from uri="direct:sendMail"/>
   <to uri="smtp:...."/>
</route>

And you can have <setHeader> prior if needed

<route>
   <from uri="direct:sendMail"/>
   <setHeader headerName="Subject"><constant>This is a cool email to
you</constant></setHeader>
   <to uri="smtp:...."/>
</route>



>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-mail-regarding-xml-configuration-tp5725280p5725346.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to