我在PHP邮件脚本中的BCC不起作用,请帮助

时间:2013-03-18 03:31:38

标签: php mailer

请帮助,我的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);

1 个答案:

答案 0 :(得分:2)

" \r\n"之前的空格似乎有问题。