如何使用蚂蚁发送邮件? [英] how to send mail using ant?

查看:134
本文介绍了如何使用蚂蚁发送邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将邮件发送到相应的用户使用的蚂蚁。

How to send mail to a respective user using ant.

我使用的蚂蚁,需要通知用户执行的检测的状况执行一些测试。那么,有没有方法,使我能做到这一点?

I am executing few tests using ant and need to inform the user about the status of the tests executed. So is there any means by which i can accomplish this ?

问候:
萨钦

推荐答案

使用SMTP邮件任务。

Use the SMTP mail task.

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>

这篇关于如何使用蚂蚁发送邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆