您好我正在尝试将密件抄送添加到邮件功能,但它不起作用。有人可以帮忙吗???这是我的代码。
<?php
if(isset($_REQUEST['submit'])){
$cleanedFrom = $_POST['mailtxt'];
$to ='abcd@abc.com';
$subject = 'Booking Form';
$headers = "From: " . $cleanedFrom . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message= '<html><body>';
$message .= "</table>";
$message .= "</body></html>";
$headers .= "BCC: abc@abc.com;\r\n";
$send = mail($to, $subject, $message, $headers);
$send = mail ("info@visitkullumanali.com", $subject, $message, $headers);
if($send)
{
echo "<script> window.location = 'wwww.mysite.com' </script>";}
else
{
echo "<script> window.location = 'index.html' </script>";
}
}
?>