Bug #12242: bug in example mail();
| From: | Alain at shockmedia dot nl | Date: | Thu, 19 Jul 2001 01:15:19 +0000 |
| Subject: | Bug #12242: bug in example mail(); | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-5619@lists.php.net to get a copy of this message | ||
From: Alain@shockmedia.nl
Operating system:
PHP version: 4.0.6
PHP Bug Type: Website problem
Bug description: bug in example mail();
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 bug report at: http://bugs.php.net/?id=12242&edit=1