Bug #12242 Updated: bug in example mail();
| From: | andy@php.net | Date: | Sat, 21 Jul 2001 22:10:03 +0000 |
| Subject: | Bug #12242 Updated: bug in example mail(); | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-60494@lists.php.net to get a copy of this message | ||
ID: 12242
Updated by: andy
Reported By: Alain@shockmedia.nl
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@php.net
Hey, hey, this is a documentation problem!!!!!!!!
------------------------------------------------------------------------
[2001-07-18 21:15:19] Alain@shockmedia.nl
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@php.net, birthdaygifts@php.net\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