ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vikram Kulkarni" <>
Subject Re: Hi... just joined the list 'cos of this problem.
Date Fri, 18 Oct 2002 07:25:29 GMT
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="" subject="Test build"
  from =""

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 -->
         <format property="TODAY" pattern="dd-MM-yyyy"/>

<target name="nightlyBuild" depends="init">

 <mimemail message  ="Please see attached file."
    messageMimeType ="text/plain"
    mailhost  =""
    tolist  =""
    from   =""
    subject  ="Results of nightly build: ${TODAY}" >
    <fileset dir="${srcdir}">
     <include name="${build.log}"/>


----- Original Message -----
From: "Ruchi Agarwal" <>
To: <>
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
> 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="" mailport="1025" subject="Test build">
>   <from address=""/>
>   <to address=""/>
>   <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.
> (
> 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

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message