my route config like this :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:camel="http://camel.apache.org/schema/spring"; 
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>

<camelContext trace="false" xmlns="http://camel.apache.org/schema/spring"; >
                <route >
                        <from uri="direct:start" />
                        <camel:to
uri=&quot;smtp://&lt;hostname>?username=<user>&password=<pw>&from=<senderEmail>&to=<receiverEmail>"
/>
                </route>
        </camelContext>
</beans>

    there is a tip like this :The reference to entity "password" must end
with the ';' delimiter. 
    If i replace '&' with ';', the tip disappear.but when i  send email ,
there is a org.springframework.mail.MailAuthenticationException, because
finally the username value :<user>&password.... ,the paassword value:null
i think the url config is wrong,any suggesttion ?

by the way camel-versrion :2.8.4

--
View this message in context: 
http://camel.465427.n5.nabble.com/the-stmp-url-error-tp5716192.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to