使用SMTP邮件任务.
http://ant.apache.org/manual/Tasks/mail.html
例:
<mail mailhost="smtp.myisp.com" mailport="1025" subject="Test build">
<from address="config@myisp.com"/>
<replyto address="me@myisp.com"/>
<to address="all@xyz.com"/>
<message>The ${buildname} nightly build has completed</message>
<attachments>
<fileset dir="dist">
<include name="**/*.zip"/>
</fileset>
</attachments>
</mail>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7749 次 |
| 最近记录: |