Php Mail BCC not working

前端 未结 3 1549
予麋鹿
予麋鹿 2021-01-24 10:24

I am trying to edit this script to send a Bcc copy to myself:

$to = $your_email;
$from = \"Server Xt\";
$subject = \"User Sent M         


        
3条回答
  •  隐瞒了意图╮
    2021-01-24 10:35

    Is $headers .= "Bcc:email@example.com"\n" the exact syntax that you are using?

    You should be receiving an error if so as that isn't valid PHP syntax.

    Try changing to something like $headers .= 'Bcc:email@example.com' . "\r\n";

提交回复
热议问题