51Testing软件测试论坛
标题:
ant+jmeter 发送邮件问题
[打印本页]
作者:
轻歌越野
时间:
2017-1-12 15:46
标题:
ant+jmeter 发送邮件问题
build.xml中部分代码如下:
<target name="sendEmail">
<mail
from="test@163.com"
tolist="${mail_to}"
mailhost="smtp.163.com"
mailport="994"
messagemimetype="text/html"
ssl="true"
user="test@163.com"
password="123456"
subject="Test Report">
<!--filesetdir="${JMeter.home}/extras/">
<includenameincludename="${ReportName}${time}.html"/>
</fileset-->
<message>
This email was sent automatically by ANT.
Please check the automation test report by the link below.
If there are any questions, please contact with Tester. Thank you!
http://${ComputerName}/${ReportName}${time}.html
</message>
</mail>
</target>
运行结果如下:
[attach]104222[/attach]
作者:
轻歌越野
时间:
2017-1-16 09:57
额,想请教大神们,为什么会failed to send email:553 authentication is required,163 smtp11
邮箱本身应该做什么设置吗,我已经将163邮箱开启smtp/pop3了,不过运行build.xml时还是出现同一个问题
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2