ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Johnson" <>
Subject RE: MAIL task
Date Fri, 25 Oct 2002 17:36:30 GMT

Did you ever resolve this issue?

I'm doing the same thing using Ant 1.5.1 and JDK 1.4.1_01, and it works correctly for me.
 The email body is in HTML format.  I've also tested it against Ant 1.5, and it works.

        <zip destfile="${test.dir}/reports/"
             basedir="${test.dir}/reports/html" />

        <mail mailhost=""
              subject="NightlyBuild test results [${TODAY}]"
            <fileset dir="${test.dir}/reports">
                <include name=""/>

- Jeff

-----Original Message-----
From: Dushyant Shrivastava []
Sent: Wednesday, October 23, 2002 12:24 AM
To: Ant Users List
Subject: MAIL task

Hi guys,
I am using ANT 1.5 with JBoss 3.0.2, JDK 1.4.1.

This is my code which basically should send the mail out:
<!-- =================================================================== -->
<!-- Send mail out                                                                    
<!-- =================================================================== -->

<target name="mail" depends="compile, test">

<mail mailhost="pluto" subject="Test build results" messagemimetype="text/html" messagefile="${reports}/overview-summary.html"
          <from address=""/>
          <to address=""/>
           <fileset dir="${reports}">
                           <include name="index.html"/>

This is what my JUnitreport task looks like:

        <junitreport todir="${reports}">
          <fileset dir="${reports}">
             <include name="TEST-*.xml"/>
          <report format="noframes" todir="${reports}"/>

Now every time the mail is sent out, it gets to my address in plain text instead of the html
format!! Has anyone come across this problem, is this a problem with ANT 1.5 in particular???


Any help is much appreciated




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

View raw message