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

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

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

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

[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