<!-- 接收測試報告的郵箱 -->
<property name="mail_from" value="[email protected]" />
<!--mail_to:發送清單,多個之間逗号間隔 -->
<property name="mail_to" value="[email protected],[email protected]" />
<!-- 發送郵件 <to address="${mail_to}"/> 改為mail tolist-->
<target name="send" >
<mail tolist="${mail_to}" mailhost="smtp.qq.com" mailport="587" subject="TTJJ TestReport!" messagemimetype="text/html" user="[email protected]" password="xxxx" >
<from address="${mail_from}"/>
<message> from xxx</message>
<attachments>
<fileset dir="${jmeter.result.html.dir}">
<include name="${ReportName}${time}.html"/>
</fileset>
</attachments>
</mail>
</target>