Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Bcc not working in email script


caffinated - 6:03 pm on Nov 4, 2011 (gmt 0)


Hello

Here is a script I am using for emailing subscribers:

<?php
$to = 'someone@address.com';
$subject = 'discount etc';
$message = '

<!DOCTYPE html>
<html>
<head><meta charset="UTF-8" />
</head>

<body>
{content is included here}
</body>
</html>
';

$headers = 'From: me@me.com' ."\r\n";
$headers .= 'MIME-Version: 1.0' ."\r\n";
$headers .= 'Content-type: text/html; charset=UTF8' ."\r\n";
$headers .= 'Bcc: person1@address.com, person2@address.com, person3@address.com' ."\r\n";

mail($to, $subject, $message, $headers);
?>


Everything works fine, except non of the BCC addresses are working.

When I check the inbound email for the $to: recipient, all of the headers are being processed and received...all but the bcc addresses.

Any clues why?

PS. Yes I know there are out-of-the-box packages out there, that's not the solution I'm looking for thanks.


Thread source:: http://www.webmasterworld.com/php/4383600.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com