我想这是我第一次看到雅虎邮件做了一些有趣的事情,但Gmail却没有做到。我肯定错过了什么。邮件正文在Gmail中出现乱码
我使用蚂蚁邮件任务测试报告的自动化输送 -
<target name="sendtestreport">
<tstamp>
<format property="current.time" pattern="MM/dd/yyyy hh:mm" />
</tstamp>
<property name="subject" value="Selenium Test Report: " />
<mail mailhost="test.de" mailport="25" subject="${subject} ${current.time}"
user="[email protected]" password="password" messagemimetype="text/html">
<from address="[email protected]" />
<replyto address="[email protected]" />
<to address="[email protected]" />
<message src="${basedir}\test-output\emailable-report.html">If you have trouble viewing the message then open attachment</message>
<attachments>
<fileset dir="${basedir}">
<include name="**/emailable-report.html"/>
</fileset>
</attachments>
</mail>
</target>
在这里,在我送邮件的其通过在TestNG的身体产生的电子邮件发送的测试报告(以及附接)。在我的Gmail帐户信息格式错误,没有显示颜色,文本重叠和错位。在雅虎邮件中,它看起来很完美。
是否有任何设置需要在Gmail中修改才能以正确的格式显示消息。 还是Gmail的缺陷行为?
我试了一下FF 8和Chrome 15.没有IE – Tarun