Search code examples
phpemailbcc

php mail with bcc not working


I am using below code for sending mail with cc and bcc.

$headers="From: $name <{$fromAddress}>\r\n".
            "Reply-To: [email protected]\r\n".
            "Cc: [email protected]\r\n".
            "BCC: [email protected]\r\n".
            "MIME-Version: 1.0\r\n".
            "Content-type: text/html; charset=UTF-8";

@mail($toAddres,$subject,$message,$headers,$parameters);

All the things are working fine including reply-to, cc but the bcc is not working.

In the mailbox headers, it is not showing me the bcc mail address. What do I need to fix it?


Solution

  • You could try with ICC (Invisible Carbon Copy) wish is the second name of BCC.

    By the way, BCC is Blind Carbon Copy. So if you don't see them in your mail it's normal.