解决方法
您需要告诉MUA内容包含HTML.传统上这是使用MIME完成的.尝试在邮件中添加以下标题行:
Mime-Version: 1.0 Content-Type: text/html
您可能还需要添加Content-transfer-encoding标头. Wikipedia page on MIME有更多细节,包括相关RFC的链接.
更新:当管道传输到sendmail -t时这很好用:
From: [email protected] To: [email protected] Subject: MIME Test Mime-Version: 1.0 Content-Type: text/html <html> <body> This is a test. </body> </html>