ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruchi Agarwal <ragar...@kanbay.com>
Subject RE: Hi... just joined the list 'cos of this problem.
Date Fri, 18 Oct 2002 07:22:36 GMT
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 the list 'cos of this problem.

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 ="vkulkarni@icope.com"
  tolist="vkulkarni@icope.com"
  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  ="vkulkarni@icope.com"
    from   ="vkulkarni@icope.com"
    subject  ="Results of nightly build: ${TODAY}" >
    <fileset dir="${srcdir}">
     <include name="${build.log}"/>
    </fileset>
 </mimemail>
</target>


-Vikram

----- Original Message -----
From: "Ruchi Agarwal" <ragarwal@kanbay.com>
To: <ant-user@jakarta.apache.org>
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="ragarwal@kanbay.com"/>
>   <to address="ragarwal@kanbay.com"/>
>   <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.
> (PostMaster@Kanbay.com)
> 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>


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.
(PostMaster@Kanbay.com) 
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>


Mime
View raw message