camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Email with smtps not taking Placehoders for userName/password
Date Thu, 17 Jan 2013 07:26:25 GMT
Hi

See this FAQ
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html


On Wed, Jan 16, 2013 at 8:17 PM, yxzhao <yxzhao@stonewain.com> wrote:
> Hi All,
>
> We're trying to create a route to send email out. It works if we have below
> configuration:
>
> <to
> uri="smtps://smtp.gmail.com?username=myUser@gmail.com&amp;password=mypass"/>
>
> But it does not work if the username and password are taken from a
> properties file or set as headers as below.
>
> <setHeader
> headerName="emailName"><constant>myUser@gmail.com</constant></setHeader>
> <to
> uri="smtps://smtp.gmail.com?username=${in.header.emailName}&amp;password=mypass"/>
>
> Is this a feature or have we done something wrong?
>
> Thanks in advance for any help or info.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Email-with-smtps-not-taking-Placehoders-for-userName-password-tp5725656.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: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message