Here's and example using Ant Mail. Sends dynamic property with my
failure flag property and output files attached.
<target name="mailIt">
<mail mailhost="xxx.yyy.companyname.COM" subject="Test results">
<from address="[EMAIL PROTECTED]"/>
<to address="[EMAIL PROTECTED]"/>
<message>The ${resultpath} nightly build has
completed as
resultproperty:
testFailureFlag:${testFailureFlag}
</message>
<fileset dir="${resultpath}">
<include name="${canoo.htmlfile}"/>
</fileset>
</mail>
</target>
Regards,
Andrew