我想這是我第一次看到雅虎郵件做了一些有趣的事情,但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