请帮助,我的BCC不能正常工作。我在这做错了什么?谢谢!
$to = "recepient@email.com";
$subject = "A message came in from the Website:";
$message ='{$message}';
$headers = "MIME-Version: 1.0\r \n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r \n";
$headers .= "From: $name <$email>\r\n";
$headers .= 'Bcc: myemail@email.com' . " \r\n"; //<- this part is not working :(
mail($to, $subject, $message, $headers);
答案 0 :(得分:2)
" \r\n"
之前的空格似乎有问题。