ANT发送邮件需要的3个JAR包
2013-10-18 11:29
513 查看
ANT发送邮件需要的3个JAR包:activation.jar、mail.jar、commons-email-1.2.jar
将这三个jar包放到 $ANT_HOME/LIB 路径下即可
内网发送邮件:
外网发送邮件
将这三个jar包放到 $ANT_HOME/LIB 路径下即可
内网发送邮件:
<target name="sendEmail"> <mail mailhost="internalmail.test.com" mailport="25" subject="SmokeTest Report!" messagefile="${JMeter.home}/extras/AutoTestReport${time}_failure.html" messagemimetype="text/html" tolist="${to_me_only}"> <from address="mim.zhang@test.com"/> <fileset dir="${JMeter.home}/extras/"> <!-- <include name="AutoTestReport${time}.html"/> --> <include name="expand.png"/> </fileset> <!-- <message>This email was sent automatically by ANT. <br /> Please check the automation test report by the link below. <br /> If there are any questions, please contact with mim. Thank you! <br /><br /> http://SZCOMPUTER/AutoTestReport${time}.html </message> --> </mail> </target>
外网发送邮件
<target name="sendEmail"> <mail mailhost="stmp.qq.com" mailport="25" from="12345678@qq.com" user="12345678" password="*****" subject="SmokeTest Report!" messagefile="${JMeter.home}/extras/AutoTestReport${time}_failure.html" messagemimetype="text/html" tolist="${to_me_only}"> <fileset dir="${JMeter.home}/extras/"> <!-- <include name="AutoTestReport${time}.html"/> --> <include name="expand.png"/> </fileset> <!-- <message>This email was sent automatically by ANT. <br /> Please check the automation test report by the link below. <br /> If there are any questions, please contact with mim Zhang. Thank you! <br /><br /> http://SZCOMPUTER/AutoTestReport${time}.html </message> --> </mail> </target>
相关文章推荐
- 更换VS2012序列号的方法
- 计算序列逆序数
- 在从ArcGIS Server 9.x更新到ArcGIS Server 10后,日志在ArcGIS Server Manager中无法显示
- 网络子系统69_路由表辅助程序
- 关于验证码的一些事
- Wireshark-数据包过滤和分析
- CSS3之多背景background使用示例
- 关于分离线程
- C#设计模式学习资料--原型模式
- echo同时输出到多个文件中
- SVN基本操作汇总
- 【转】JAVA 验证代理是否可用
- no such partition grub rescue的解决方案
- Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules
- 逗号和分号
- ubuntu 12.04安装jdk
- 生产者和消费者问题
- WF学习第二天
- protobuf的c++生成简明过程示例
- 数据流程图的学习1