Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 37621 invoked from network); 12 Nov 2007 11:15:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 11:15:43 -0000 Received: (qmail 24150 invoked by uid 500); 12 Nov 2007 11:15:31 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 24085 invoked by uid 500); 12 Nov 2007 11:15:31 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 24076 invoked by uid 99); 12 Nov 2007 11:15:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 03:15:31 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 11:16:19 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IrXG4-00062h-Eh for camel-user@activemq.apache.org; Mon, 12 Nov 2007 03:15:12 -0800 Message-ID: <13703767.post@talk.nabble.com> Date: Mon, 12 Nov 2007 03:15:12 -0800 (PST) From: "ruben.martin" To: camel-user@activemq.apache.org Subject: Re: How to send a mail In-Reply-To: <13696252.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ruben.martin@fundacionctic.org References: <13696252.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Ok, sorry, problem resolved. I got in my classpath the mock-javamail jar from a previous test. ruben.martin wrote: > > 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://ruben.martin@fundacionctic.org?password=xxxxx#ruben.martin@fundacionctic.org"); > } > }; > } > } > -- View this message in context: http://www.nabble.com/How-to-send-a-mail-tf4787595s22882.html#a13703767 Sent from the Camel - Users mailing list archive at Nabble.com.