sendmail 在 oracle linux 上发送 HTML 电子邮件失败

sendmail 在 oracle linux 上发送 HTML 电子邮件失败

我正在尝试通过oracle enterprise linux 中的sendmail 功能发送html 格式的邮件。我使用以下脚本和 HTML 格式发送邮件。正如预期的那样,它在 ubuntu 上运行。但在 oracle linux 上,它将 HTML 作为平面文本发送。

cat cpu_alert.html | /usr/lib/sendmail -t

“cpu_alert.html”文件将如下所示

From: [email protected]
To: [email protected]
Subject: CPU utilization heigh
Mime-Version: 1.0
Content-Type: text/html

<h1>Mail body will be here</h1>
The mail body should start after one blank line from the header.

stackoverflow 上几乎没有类似的帖子。但这些建议在 Oracle Linux 中不起作用。

相关内容