ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yogesh Pandit <iam_pan...@yahoo.com>
Subject Re: Problem with the "mail" task.
Date Tue, 24 Feb 2004 06:00:06 GMT
Hi,
 
Here is the output : 
 
BUILD FAILED
C:\Yogesh\build.xml:107: Problem while sending mime mail:
        at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:2
68)
        at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java:
593)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
Caused by: javax.mail.SendFailedException: Sending failed;
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: mail.acce
nture.com, port: 25;
  nested exception is:
        java.net.ConnectException: Connection timed out: connect
        at javax.mail.Transport.send0(Transport.java:204)
        at javax.mail.Transport.send(Transport.java:73)
        at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:2
66)
        ... 11 more
--- Nested Exception ---
javax.mail.SendFailedException: Sending failed;
  nested exception is:
        javax.mail.MessagingException: Could not connect to SMTP host: mail.acce
nture.com, port: 25;
  nested exception is:
        java.net.ConnectException: Connection timed out: connect
        at javax.mail.Transport.send0(Transport.java:204)
        at javax.mail.Transport.send(Transport.java:73)
        at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:2
66)
        at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java:
593)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
        at org.apache.tools.ant.Task.perform(Task.java:401)
        at org.apache.tools.ant.Target.execute(Target.java:338)
        at org.apache.tools.ant.Target.performTasks(Target.java:365)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
        at org.apache.tools.ant.Main.runBuild(Main.java:669)
        at org.apache.tools.ant.Main.startAnt(Main.java:220)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

Sebastien Blanc <Sebastien.Blanc@alcatel.com> wrote:
can u give ant -v output ?

Yogesh Pandit wrote:

> Hi Sebastien,
>
> I have added smtp.jar , mailapi.jar , activation.jar , mail.jar to c:\ant\lib and added
c:\ant\lib in my classpath. BVut, it still doesn't work.
>
> Could u please help ?
>
> Regards,
> Yogesh.
>
> Sebastien Blanc wrote:
> Hi,
> just to make sure, did u download the mail.jar at
> http://java.sun.com/products/javamail/ ?
> seb.
>
> Yogesh Pandit wrote:
>
> > Hi,
> >
> > I have written the following in build.xml
> >
> >
> > > tolist="yogesh.s.pandit@accenture.com"
> > subject="Results of nightly build">abcd
> >
> >
> >
> >
> >
> >
> > When I execute the mail task, I get the following error :
> > mail:
> > [mail] Sending email: Results of nightly build
> > [mail] Failed to send email
> > BUILD FAILED
> > C:\Yogesh\build.xml:107: Problem while sending mime mail:
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail SpamGuard - Read only the mail you want.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message