SpamAssassin认为我可以改进:
MIME_HTML_ONLY Message only has text/html MIME parts
You should also include a text version of your message (text/plain)
如果我的脚本实际上是以下内容,我怎么能这样做:
$to = 'My user name <user@domain.com>';
$message = 'my html message here';
$headers .= 'From: me <noreply@mydomain.com>' . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
mail($to, 'My subject', $message, $headers);
感谢。