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

版权声明:本文为tonggc1668原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/tonggc1668/p/12666841.html