ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <>
Subject RE: sending e-mails from ant
Date Thu, 31 Jan 2002 09:04:32 GMT
> 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 


> My original code in ant was: 
> <target name="sendMail" depends="build"> 
> <mail files="okcbuild.log" tolist="" 
> from="" 
> 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.

View raw message