我在我的 PHP 中使用这些标头来确保电子邮件避开垃圾邮件文件夹,但它们似乎运行得不是很好。
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: hello@somebodylovesyou.co.uk <hello@somebodylovesyou.co.uk>\r\n";
$headers .= "Reply-To: hello@somebodylovesyou.co.uk <hello@somebodylovesyou.co.uk>\r\n";
$headers .= "Return-Path: hello@somebodylovesyou.co.uk <hello@somebodylovesyou.co.uk>\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: Normal\r\n";
上面的代码中是否有任何您可以更改或删除的内容可能有助于这项工作?