0

助けてください、私の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);
4

1 に答える 1

2

あなたの前のスペースに問題" \r\n"があるようです。

于 2013-03-18T09:18:35.217 に答える