[PHP-DOC] Bug #12242 Updated: bug in example mail(); From: andy <email protected>
Date: 07/21/01

ID: 12242
Updated by: andy
Reported By: Alain <email protected>
Status: Open
Bug Type: Documentation problem
Operating System:
PHP Version: 4.0.6
New Comment:

TODO: Change documentation to remove the last \n on the
"bcc:" header

Previous Comments:
------------------------------------------------------------------------

[2001-07-19 03:34:28] goba <email protected>

Hey, hey, this is a documentation problem!!!!!!!!

------------------------------------------------------------------------

[2001-07-18 21:15:19] Alain <email protected>

Not a real bug but a incorrect example: http://www.php.net/manual/en/function.mail.php
Example 4. Sending complex email.
 
doesn't work because:
$headers .= "bcc: birthdaycheck <email protected>, birthdaygifts <email protected>\n"; // BCCs to

contains a trailing \n (last thing in the header may not contain a \n)

under the example stand:
"Note: Make sure you have no new-line (or other whitespace) after your to or subject parameters, as this may cause strange results. "

This is very unclear, as i, have been poundering for a while what the f*ck the problem was :)

Greetings,
Alain

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=12242&edit=1