mail命令发送html格式的电子邮件
https://blog.csdn.net/newborn2012/article/details/22067965
1.mail.htm:
From: sender<sender@xxx.com>
To: receiver<receiver@xxx.com>
Subject: subject
Content-Type: text/html;charset=utf-8
<html>
<body>
content
</body>
</html>
.
发送邮件时:
$sendmail -t < mail.htm
2.mail -s test receiver@xxx.com < /opt/report/logs/content.txt