0
不靈根據最新的Gmail文檔,內嵌CSS的支持:https://developers.google.com/gmail/design/css嵌入式CSS在Gmail
不過,我複製他們的榜樣到一個文件css.html
<html>
<head>
<style>
.colored {
color: blue;
}
#body {
font-size: 14px;
}
</style>
</head>
<body>
<div id='body'>
<p>Hi Pierce,</p>
<p class='colored'>This text is blue.</p=>
<p>Jerry</p>
</div>
</body>
</html>
,並通過命令行派:
cat css.html | mail -s "$(echo -e "Test\nContent-Type: text/html")" [email protected]
無論在Gmail網站還是Gmail應用程序中,它們都不能正常工作並顯示爲純文本。任何想法?