try deleting the mailport attribute and see what happens. Let ANT take this
value by default..
Suresh
-Original Message-
From: Ruchi Agarwal [mailto:ragarwal;kanbay.com]
Sent: Friday, October 18, 2002 11:05 AM
To: [EMAIL PROTECTED]
Subject: Hi... just joined the list 'cos of this
Please Check the manual...
http://jakarta.apache.org/ant/manual/
The mail task supports the mailport attribute.
Regards,
Ruchi
-Original Message-
From: Vikram Kulkarni [mailto:vkulkarni;icope.com]
Sent: Friday, October 18, 2002 12:55 PM
To: Ant Users List
Subject: Re: Hi... just joined
Didn't you get this message?
The mail task doesn't support the mailport attribute.
Try modifying your mail task like this:
target name=mail depends=prepare
mail mailhost=10.0.0.10 subject=Test build
from =[EMAIL PROTECTED]
tolist=[EMAIL PROTECTED]
files=build.xml/
/target
where 'files'
Most likely to fail because of
(1) mailhost/mailport wrong: check with your sysadmin to make sure
that the SMTP mailhost's IP address is correct and the port is
correct. The default for the port is 25 and I have hardly seen
people changing it.. so its worth a try to verify it
(2) if (1) is
Ruchi,
Here is the syntax of the target I use to send out email in case my junit
tests fail. Following that is a modified target for you, if a build fails
target name=send-report-failure-junit if=junit.failed
depends=unit-test-report
mail