I am using the mail function to generate automatic emails. I understand that you can use a header to indicate blind copies. However, I don't know the proper string formatting for multiple BCC's. See code snippet below:
$header = "From: test@mail0.testnetwork.com\r\nbcc: abcd@hotmail.com\r\nbcc: helpme@help.com";
mail($address, $subject, $body, $header);
I have read the PHP manual online, and checked my books, but proper syntax for multiple header items just isn't clear. Please help. Thanks.
Mail Function with Multiple BCC's in the header
Moderator: General Moderators
A shot in the dark...
Using , as delim between the addys?
Sorry, can't test to verify.
Code: Select all
$header = "From: test@mail0.testnetwork.com\r\nbcc: abcd@hotmail.com, helpme@help.com";
mail($address, $subject, $body, $header);Sorry, can't test to verify.