Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
On Thu, Jun 20, 2013 at 1:33 PM, sprabu <[email protected]> wrote: > Hi, > When i try to construct dynamic URI. Its not working here, i'm trying > configure gmail USER NAME and PASSWORD details dynamically from header. Buts > its not working for me. Please help me to come out of it. Also i referred > the following link to do this, even then its not working. > > http://camel.465427.n5.nabble.com/Dynamic-URI-creation-in-apache-camel-td5055155.html > > > This is the code i used, > > <to > uri="smtp://{{SMTP_ADDRESS}}:{{PORT_NUMBER}}?username=${header.USER_EMAIL_ID}&password=${header.MAIL_PWD}&subject=${header.BILLING_EMAIL_SUBJECT}&mail.smtp.starttls.enable=true" > /> > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamic-uri-not-working-tp5734434.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- www.camelone.org: The open source integration conference. Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
