You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Zhendi Su <ra...@oracle.com> on 2002/02/01 00:35:51 UTC

Re: sending e-mails from ant

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="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!
>
> 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