Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 629C99E82 for ; Sat, 25 Aug 2012 20:49:12 +0000 (UTC) Received: (qmail 20354 invoked by uid 500); 25 Aug 2012 20:49:10 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 20280 invoked by uid 500); 25 Aug 2012 20:49:10 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 20272 invoked by uid 99); 25 Aug 2012 20:49:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Aug 2012 20:49:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stefan.at.wpf@googlemail.com designates 209.85.210.43 as permitted sender) Received: from [209.85.210.43] (HELO mail-pz0-f43.google.com) (209.85.210.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Aug 2012 20:49:04 +0000 Received: by daku36 with SMTP id u36so1936523dak.30 for ; Sat, 25 Aug 2012 13:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Cyah6/9bhbdKNpekad6wZ+kmz+n1QcqZinsfc9nmKE0=; b=MXeDfSNGZ5Ag56h4oGCCP0OudS5WCDveelr7JfhXZ5jDgrrb9JnxeqWo92p/J6Ew/M 34XnTmOcN6dPd3wMgFJ/QcLTSmbqh6Ltcs9luFGdJEZh2IUwfIxGyzDi5UrhxAj3NMvs giVVGc3JlE3bAPdkBLk7CGDAy/GjyW/vLLfpGBuWYPn4iIo9e/QpYoBI6URp4k953L17 4JHXKPtFJEaVomwz1AJEzGNNwpzDQMEEGgQd9EdOHeWaVvqKyvH2VarzReoJ6FexCKdd emnKMZtgqlAvx+G+9alplcq1ayD1HeejM2QzlLdH2UDO9z3uNPglMyF1jTu6nugIOW83 Chsw== MIME-Version: 1.0 Received: by 10.68.130.163 with SMTP id of3mr23196496pbb.108.1345927723120; Sat, 25 Aug 2012 13:48:43 -0700 (PDT) Received: by 10.68.226.3 with HTTP; Sat, 25 Aug 2012 13:48:43 -0700 (PDT) In-Reply-To: <5033C8BD.40507@it20one.at> References: <5033C8BD.40507@it20one.at> Date: Sat, 25 Aug 2012 22:48:43 +0200 Message-ID: Subject: Re: [email] Version 1.3 in SVN? From: Stefan at WPF To: Commons Users List , siegfried.goeschl@it20one.at Content-Type: multipart/alternative; boundary=047d7b15a7f3d4774004c81d3781 --047d7b15a7f3d4774004c81d3781 Content-Type: text/plain; charset=ISO-8859-1 Hello Siegfried, thank you for your reply. Today I finally had the chance to test 1.3. I tried sending a mail using TLS, however I always get a tiemout, here's the code: > Email email = new SimpleEmail(); > email.setSmtpPort(465); > email.setAuthenticator(new DefaultAuthenticator("user", "pass")); > email.setDebug(false); > email.setHostName("host.com"); > email.setFrom("from@host.com"); > email.setSubject("Hi"); > email.setMsg("This is a test mail ... :-)"); > email.addTo("to@host.com"); > email.setTLS(true); > email.send(); This gives me > Exception in thread "main" org.apache.commons.mail.EmailException: Sending > the email to the following server failed : host.com:465 > at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1189) > at org.apache.commons.mail.Email.send(Email.java:1214) > at Mailtest.main(Mailtest.java:26) > Caused by: javax.mail.MessagingException: Exception reading response; > nested exception is: > java.net.SocketTimeoutException: Read timed out > at > com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2210) > at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1950) > at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642) > at javax.mail.Service.connect(Service.java:317) > at javax.mail.Service.connect(Service.java:176) > at javax.mail.Service.connect(Service.java:125) > at javax.mail.Transport.send0(Transport.java:194) > at javax.mail.Transport.send(Transport.java:124) > at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1179) > ... 2 more > Caused by: java.net.SocketTimeoutException: Read timed out > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:150) > at java.net.SocketInputStream.read(SocketInputStream.java:121) > at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) > at java.io.BufferedInputStream.read(BufferedInputStream.java:254) > at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) > at > com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2188) > ... 10 more Also I am wondering, what is the best way to send an email using TLS? setTLS is marked as deprecated? Thank you very much and best regards Stefan 2012/8/21 Siegfried Goeschl > Hi Stefan, > > the vote did not pass simply because it did not attracted enough +1s ... > :-( > > Technically the 1.3 release is the current trunk or the following SVN URL > > https://svn.apache.org/repos/**asf/commons/proper/email/tags/** > EMAIL_1_3_RC3 > > If you give it a try it would be highly appreciated if you write a quick > feedback (even if it worx without issues) ... ;-) > > Cheers, > > Siegfried Goeschl > > > On 15.08.12 12:20, Stefan at WPF wrote: > >> Hello, >> >> I think I have read that 1.3 is already finished, just not yet released, >> because it didn't pass the voting. >> >> 1) Anyone knows why it did not pass the voting? What's the problem with >> 1.3? >> 2) How can I find 1.3 on the SVN? >> >> Thanks :-) >> >> Best regards >> Stefan >> >> > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: user-unsubscribe@commons.**apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --047d7b15a7f3d4774004c81d3781--