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では機能しません。

ベストアンサー1

おすすめ記事