Php Mail BCC not working

前端 未结 3 1579
予麋鹿
予麋鹿 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:34

    it looks the order of header is important!!!

    $from = "Sender Name";
    $to="receiver@stackoverflow.com";
    $headers = "From: $from\r\n";
    $headers .= "To: $to\r\n";
    $headers .= "Return-Path: <".$to.">\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Bcc:email@gmail.com\r\n";
    $headers .= "Content-Type: text/HTML; charset=ISO-8859-1\r\n";
    

提交回复
热议问题