camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yxzhao <yxz...@stonewain.com>
Subject Email with smtps not taking Placehoders for userName/password
Date Wed, 16 Jan 2013 19:17:15 GMT
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.

Mime
View raw message