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' attribute contains the message to be sent.
In this case, the mail message that I receive would have contents of
build.xml inside the mail body.
You can also try this too:
<property name ="build.log" value="build.log" />
<target name="init" description="Prepare for build">
<!-- Create the time stamp -->
<tstamp>
<format property="TODAY" pattern="dd-MM-yyyy"/>
</tstamp>
</target>
<target name="nightlyBuild" depends="init">
<mimemail message ="Please see attached file."
messageMimeType ="text/plain"
mailhost ="10.0.0.10"
tolist ="[EMAIL PROTECTED]"
from ="[EMAIL PROTECTED]"
subject ="Results of nightly build: ${TODAY}" >
<fileset dir="${srcdir}">
<include name="${build.log}"/>
</fileset>
</mimemail>
</target>
-Vikram
----- Original Message -----
From: "Ruchi Agarwal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 11:05 AM
Subject: Hi... just joined the list 'cos of this problem.
> Hi,
>
> I want to use the mail target in my project
> But facing some problem
>
> Error saying **********
>
> Buildfile: a.xml
>
> init:
> [mail] Sending email: Test build
> [mail] Failed to send email
>
> BUILD FAILED
> file:D:/test/a/a.xml:15: Problem while sending mime mail:
>
> Total time: 2 seconds
>
>
>
> The code that I've written for this prpose is
>
> <mail mailhost="172.22.12.168" mailport="1025" subject="Test build">
> <from address="[EMAIL PROTECTED]"/>
> <to address="[EMAIL PROTECTED]"/>
> <message>The nightly build has completed</message>
> </mail>
>
> and along with that, I've already included the required jars (mail.jar and
> activation.jar)
>
> is there any other setting required ???
>
> please help me.
>
> Thanks in anticipation.
>
> Regards,
> Ruchi Agarwal
>
>
>
>
> This message and any attachment(s) is intended only for the use of the
> addressee(s) and may contain information that is PRIVILEGED and
> CONFIDENTIAL. If you are not the intended addressee(s), you are hereby
> notified that any use, distribution, disclosure or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, please erase all copies of the message and its
> attachment(s) and notify the sender or Kanbay postmaster immediately.
> ([EMAIL PROTECTED])
> Any views expressed in this message are those of the individual sender.
> Although we have taken steps to ensure that this e-mail and any
> attachment(s) are free from any virus, we advise that in keeping with good
> computing practice the recipient should ensure they are actually virus
free.
>
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>