ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhendi Su <rachael...@oracle.com>
Subject sending e-mails from ant
Date Thu, 31 Jan 2002 03:56:06 GMT
Hi,

I tried to send an email using ant's mail task, but it failed.  The
error message was:

/home/rsu/prototype/build.xml:10: IO error sending mail: Connection
refused
        at
org.apache.tools.ant.taskdefs.SendEmail.execute(SendEmail.java, Compiled
Code)
        at org.apache.tools.ant.Task.perform(Task.java, Compiled Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled
Code)
        at org.apache.tools.ant.Target.performTasks(Target.java,
Compiled Code)
        at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled Code)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.start(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java, Compiled Code)

My original code in ant was:

<target name="sendMail" depends="build">
<mail files="okcbuild.log" tolist="Rachael.Su@oracle.com"
from="Rachael.Su@oracle.com" subject="First Attempt at Ant--Build
result:${TODAY}" />
</target>

Anybody has any idea why?  Thanks a lot!

Zhendi Su

Mime
View raw message