ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Wood <kw...@i2.com>
Subject Re: sending e-mails from ant
Date Thu, 31 Jan 2002 03:58:04 GMT
Do you have software on 'localhost' (the default host for this task)
that can process mail?

Zhendi Su wrote:
> 
> 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
> 
>              -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> --
> To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message