Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 35156 invoked from network); 17 Mar 2010 22:27:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 22:27:36 -0000 Received: (qmail 3036 invoked by uid 500); 17 Mar 2010 22:27:35 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 2970 invoked by uid 500); 17 Mar 2010 22:27:35 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 2962 invoked by uid 99); 17 Mar 2010 22:27:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 22:27:35 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rchaudhri@1fbusa.com designates 66.172.221.210 as permitted sender) Received: from [66.172.221.210] (HELO smtp1.1fbusa.com) (66.172.221.210) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 22:27:30 +0000 Received: from x363mlv3.1fbusa.com (x363mlv3.1fbusa.com [192.168.9.4]) by smtp1.1fbusa.com (8.13.8+Sun/8.13.8) with ESMTP id o2HMR9Mw012644 for ; Wed, 17 Mar 2010 17:27:09 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=1fbusa.com; s=1fbdkim01; t=1268864829; bh=FrhsKGY+AAFpATJLLKCtIXnLx4lGTkSjNEzLFwhixqI=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; b=JmT46RvOSEmUV/DNzArM5+thb6nGpIha6UjzroleqphbNEK7rarxybq9P7qLIBn1P frdl5YkQiCqKzzHTVeP09RKe+qiCCLQ4vj2oFREa/29WqL+7hMNtcNASVRSJjAz/4b BRlQjId5W59wwinTSEJzlChlEINxN4LeNNacxdD4= X-AuditID: c0a80904-000000060000064b-ec-4ba1573d6747 Received: from p363oc03.1fbusa.com (p363oc03.1fbusa.com [172.26.40.80]) by x363mlv3.1fbusa.com (Symantec Mail Security) with ESMTP id 1684D6F69 for ; Wed, 17 Mar 2010 17:27:09 -0500 (CDT) Received: from psfows1377.ad.1fbusa.com by p363oc03.1fbusa.com with ESMTP id 146609141268864803; Wed, 17 Mar 2010 17:26:43 -0500 From: "Rao Chaudhri" To: "Ant Users List" Subject: RE: Issue sending mail with ANT 1.8 when encoding set to "Plain" Date: Wed, 17 Mar 2010 15:26:42 -0700 Thread-Index: AcrGIOryVzgGkekIQ/GmzyCHUSRTNA== Organization: 1st Financial Bank USA Message-ID: <20100317152642399.00000003036@PSFOWS1377> In-Reply-To: <4BA14A65.1000403@gmx.de> References: <20100317092737293.00000003036@PSFOWS1377> <4BA14A65.1000403@gmx.de> X-Mailer: Oracle Connector for Outlook 10.1.3.0.11 110130 (11.0.8312) X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: AAAAAA== Hi, = The below issue only occurs when trying to attach a file and using encoding= =3D"plain". Your code is not doing any attachments, you should be able to send the mail. Make sure that your SMTP server (450-mail-relay) is runni= ng, one way you can check it is through telnet command. = # telnet 450-mail-relay 25 I am still not able to figure-out how can I send attachments using encoding= =3D"plain" in ANT 1.8 Thanks Rao U. Chaudhri 415-591-3031 -----Original Message----- From: Antoine Levy Lambert [mailto:antoine@gmx.de] = Sent: Wednesday, March 17, 2010 2:32 PM To: Ant Users List Subject: Re: Issue sending mail with ANT 1.8 when encoding set to "Plain" Hello Rao, I confirm the problem with the following snippet = Would you mind entering a bug report in bugzilla ? Regards, Antoine Rao Chaudhri wrote: > Hi, > > > > I am using ANT build files to do build and deploy for J2EE applications. = We recently upgraded ANT from 1.5 to 1.8. > > ANT 1.8 complains while sending e-mail when encoding is set to "Plain", h= owever, it works fine if encoding is set to "MIME" or "AUTO". > > I want to use encoding "Plain" because this way my log file appears in th= e email body, as oppose to MIME or AUTO which attaches the > > file with the body of the email. > > > > Here's my error stack trace when sending e-mail using encoding "Plain" wi= th ANT 1.8: > > > > [mail] Failed to send email: Socket closed > > > > BUILD FAILED > > > > /1fb/home/build/jdev/scripts/scripts/deploy10gr3/deploybw.xml:415: IO err= or sending mail > > at org.apache.tools.ant.taskdefs.email.PlainMailer.send(Plain= Mailer.java:113) > > at org.apache.tools.ant.taskdefs.email.EmailTask.execute(Emai= lTask.java:571) > > at org.apache.tools.ant.UnknownElement.execute(UnknownElement= .java:291) > > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source= ) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegating= MethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispat= chUtils.java:106) > > at org.apache.tools.ant.Task.perform(Task.java:348) > > at org.apache.tools.ant.Target.execute(Target.java:390) > > at org.apache.tools.ant.Target.performTasks(Target.java:411) > > at org.apache.tools.ant.Project.executeSortedTargets(Project.= java:1360) > > at org.apache.tools.ant.Project.executeTarget(Project.java:13= 29) > > at org.apache.tools.ant.helper.DefaultExecutor.executeTargets= (DefaultExecutor.java:41) > > at org.apache.tools.ant.Project.executeTargets(Project.java:1= 212) > > at org.apache.tools.ant.Main.runBuild(Main.java:801) > > at org.apache.tools.ant.Main.startAnt(Main.java:218) > > at org.apache.tools.ant.Main.start(Main.java:180) > > at org.apache.tools.ant.Main.main(Main.java:269) > > Caused by: java.net.SocketException: Socket closed > > at java.net.SocketInputStream.socketRead0(Native Method) > > at java.net.SocketInputStream.read(SocketInputStream.java:129= ) > > at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder= .java:411) > > at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.= java:453) > > at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183) > > at java.io.InputStreamReader.read(InputStreamReader.java:167)= > > at java.io.BufferedReader.fill(BufferedReader.java:136) > > at java.io.BufferedReader.readLine(BufferedReader.java:299) > > at java.io.BufferedReader.readLine(BufferedReader.java:362) > > at org.apache.tools.mail.SmtpResponseReader.getResponse(SmtpR= esponseReader.java:58) > > at org.apache.tools.mail.MailMessage.send(MailMessage.java:44= 3) > > at org.apache.tools.mail.MailMessage.sendDot(MailMessage.java= :429) > > at org.apache.tools.mail.MailMessage.sendAndClose(MailMessage= .java:348) > > at org.apache.tools.ant.taskdefs.email.PlainMailer.send(Plain= Mailer.java:111) > > ... 17 more > > > > > > > > ANT Libraries I am loading in my CLASSPATH: > > > > ant.jar > > ant-launcher.jar > > ant-javamail.jar > > xercesImpl.jar > > activation.jar > > mail.jar > > xml-apis.jar > > > > > > > > Thanks > > Rao U. Chaudhri > > 415-591-3031 > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org