> 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 

<snip>

> My original code in ant was: 
> <target name="sendMail" depends="build"> 
> <mail files="okcbuild.log" tolist="[EMAIL PROTECTED]" 
> from="[EMAIL PROTECTED]" 
> subject="First Attempt at Ant--Build result:${TODAY}" /> 
> </target> 

> Anybody has any idea why?  Thanks a lot! 

Well, you haven't specified a mailhost parameter, so Ant is assuming that you 
want to use localhost as your SMTP server. My guess is that that isn't what you 
wanted.

Jon

Reply via email to