Ant build 文件中的发送邮件

使用SMTP服务器发送邮件<mail mailhost="smtp.myisp.com" mailport="1025" subject="Test build"> <from address="[email protected]" /> <to address="[email protected]" /> <message>The ${buildname} nightly build has completed</message> <fileset dir="dist"> <includes name="**/*.zip" /> </fileset> </mail>mailhost: SMTP服务器地址
mailport: 服务器端口
subject: 主题
from: 发送人地址
to: 接受人地址
message: 发送的消息
fileset: 设置附件