ID: 41297 Updated by: [EMAIL PROTECTED] Reported By: mattyrobuk at googlemail dot com -Status: Open +Status: Bogus Bug Type: Mail related Operating System: All PHP Version: 5.2.2 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php You need to take out the space in front on the Bcc header. Previous Comments: ------------------------------------------------------------------------ [2007-05-05 14:51:23] mattyrobuk at googlemail dot com Description: ------------ RFC 822 and RFC2822 demand that the bcc header line is not more than 998 characters long but allows for inclusion of folding whitespace (\r\n). Including \r\n in the BCC header causes additional email addresses in the BCC header to be ignored by the mail() function. Reproduce code: --------------- $to = '[EMAIL PROTECTED]'; $subject = 'Test message'; $body = 'Test message.'; $headers = 'From: Administrator <[EMAIL PROTECTED]>' . "\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'bcc: [EMAIL PROTECTED],\r\n [EMAIL PROTECTED]' . "\r\n"; Expected result: ---------------- Email should be sent to [EMAIL PROTECTED] and BCC'd to [EMAIL PROTECTED] AND [EMAIL PROTECTED] Actual result: -------------- Email is sent to [EMAIL PROTECTED] and BCC'd to [EMAIL PROTECTED] [EMAIL PROTECTED] never gets the email. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41297&edit=1
