Hi, I specified the mailhost attribute as the name of the mail server (not "localhost") and that fixed the problem! Thanks a lot for those who responded.
Have a great day! Zhendi Jon Skeet wrote: > > 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
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>