我有这个脚本可以在注册时向用户发送电子邮件。问题是它会发送给除 AOL 之外的所有电子邮件客户端。这是一个问题,因为我的客户和她的客户主要使用 AOL 电子邮件。我的代码有问题还是有解决方法?提前致谢。
$to = $EMSPosted_s; $subject = "订单确认";
$message = "
<html>
<head>
<title>Confirmation of Order</title>
</head>
<body>
<h1>Welcome to your Here To Thrive Course!</h1>
<h2>Hi ".$UNSPosted_s."</h2>
<h3>Thank you for purchasing the Here To Thrive course from x</h3>
<h5>Many thanks</h5>
<h4>Louise</h4>
<p>www.louiselloyd.life</p>
</body>
</html>";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: <confirmation@louiselloyd.life>' . "\r\n";
$headers .= 'Cc: louise@louiselloyd.life' . "\r\n";
mail($to,$subject,$message,$headers);
?>