使用 Sendmail 从 Linux 服务器发送 HTML 文件

使用 Sendmail 从 Linux 服务器发送 HTML 文件

我尝试使用此命令,但它在我的服务器上不起作用。对此情况有什么建议吗?

(
echo "From: ${from}";
echo "To: ${to}";
echo "Subject: ${subject}";
echo "Content-Type: text/html";
echo "MIME-Version: 1.0";
echo "";
echo "${message}";
) | sendmail -t

相关内容