<mail from="me" tolist="you" subject="Results of nightly build" files="build.log"/>Sends an email from me to you with a subject of Results of nightly build and includes the contents of the file build.log in the body of the message.
<mail mailhost="smtp.myisp.com" mailport="1025" subject="Test build"> <from address="me@myisp.com"/> <to address="all@xyz.com"/> <message>The ${buildname} nightly build has completed</message> <fileset dir="dist"> <includes name="**/*.zip"/> </fileset> </mail>Sends an eMail from me@myisp.com to all@xyz.com with a subject of Test Build and attaches any zip files from the dist directory. The task will attempt to use JavaMail and fall back to UU encoding or no encoding in that order depending on what support classes are available. ${buildname} will be replaced with the buildname property's value.