Hi Claus,
I`m testing this simple java code:
CamelContext ctx = new DefaultCamelContext();
ctx.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
from("direct:mail").
setHeader("subject", constant("Apache camel
test"))
.setHeader("From", constant("[email protected]"))
.to("smtp://[email protected]?password=****");
}
});
ctx.start();
Endpoint endpoint = ctx.getEndpoint("direct:mail");
ProducerTemplate p = new DefaultProducerTemplate(ctx, endpoint);
p.start();
p.sendBody("Hello!");
System.out.println("Sent!");
p.stop();
ctx.stop();
receiving this response: Could not connect to SMTP host: virgilio.it, port:
25 (right, because SMTP server is out.virgilio.it);
If i substitute the endpoint with
"smtp://[email protected]?password=****"
I get the right AddressFailedException.
So, please, could you help me to understand my error or if i have missed any
properties?
Thx in advance
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-mail-tp5725119p5732800.html
Sent from the Camel - Users mailing list archive at Nabble.com.