Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 6723 invoked from network); 17 Nov 2005 11:31:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Nov 2005 11:31:45 -0000 Received: (qmail 5368 invoked by uid 500); 17 Nov 2005 11:31:43 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 5322 invoked by uid 500); 17 Nov 2005 11:31:43 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 5306 invoked by uid 99); 17 Nov 2005 11:31:42 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2005 03:31:42 -0800 Received: by ajax.apache.org (Postfix, from userid 99) id A7093126; Thu, 17 Nov 2005 12:31:21 +0100 (CET) From: bugzilla@apache.org To: dev@ant.apache.org Subject: DO NOT REPLY [Bug 37547] New: - MailTask eats smtp errors, only reports "Failed to send email" X-Bugzilla-Reason: AssignedTo Message-Id: <20051117113121.A7093126@ajax.apache.org> Date: Thu, 17 Nov 2005 12:31:21 +0100 (CET) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=37547 Summary: MailTask eats smtp errors, only reports "Failed to send email" Product: Ant Version: 1.6.5 Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: g.hueller@gmx.at I wanted to use the "mail" core task, and in my configuration there must be some problem with the mail server. However I have no chance to find out, even when I tried running with "ant - debug", because EmailTask eats the true cause and only writes a generic warning message, even at the highest trace level. thus my enhancement suggestions: 1. in EmailTask it says } catch (BuildException e) { log("Failed to send email", Project.MSG_WARN); here it would be nice to have log("Failed to send email, reason: "+e.getMessage(), Project.MSG_WARN); or better yet an additional line with the stack trace of e.getCause() and two lines down same thing. 2. in MimeMailer there is also such a catch block: } catch (MessagingException e) { throw new BuildException("Problem while sending mime mail:", e); } catch (IOException e) { throw new BuildException("Problem while sending mime mail:", e); } perhaps you could make this a new BuildException("Problem while sending mime mail: "+e.getMessage(), e); 3. IF Ant's global log level is set to DEBUG, I would love to see the debug messages of java mail as well, i.e. in MimeMailer (and perhaps somewhere else) add props.put("mail.debug", "true"); (no idea where JavaMail debug output goes to, sorry) Thanks from Vienna, Gernot -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org