0

请帮忙,我的密件抄送不起作用。我在这里做错了什么?谢谢!

$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);
4

1 回答 1

2

你面前的空间" \r\n"似乎有问题。

于 2013-03-18T09:18:35.217 回答