Hello, i'm new to camel and i have read the examples but i cannot send an
email even with the most simple test i have tried. Is there anything wrong
in my code?

The code is below, thanks in advance.

public class MailSimpleTest extends ContextTestSupport {

    public void testSendAndReceiveMails() throws Exception {

        template.sendBody(template.getContext().getEndpoint("direct:a"),
"hello world!");
    }


    @Override
    protected RouteBuilder createRouteBuilder() {
        
        return new RouteBuilder() {
            public void configure() {
               
from("direct:a").to("smtp://[EMAIL PROTECTED]@fundacionctic.org");
            }
        };
    }
}
-- 
View this message in context: 
http://www.nabble.com/How-to-send-a-mail-tf4787595s22882.html#a13696252
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to