Bug #12242 Updated: bug in example mail();

From: Date: Sun, 22 Jul 2001 09:33:02 +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-60569@lists.php.net to get a copy of this message
ID: 12242 Updated by: goba Reported By: Alain@shockmedia.nl Old Status: Open Status: Closed Bug Type: Documentation problem Operating System: PHP Version: 4.0.6 New Comment: Done. Previous Comments: ------------------------------------------------------------------------ [2001-07-21 18:10:03] andy@php.net TODO: Change documentation to remove the last \n on the "bcc:" header ------------------------------------------------------------------------ [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

« previous php.dev (#60569) next »