#48399 [Opn->Bgs]: Documentation problem with mail() function

From: Date: Sun, 21 Jun 2009 21:41:33 +0000
Subject: #48399 [Opn->Bgs]: Documentation problem with mail() function
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2388@lists.php.net to get a copy of this message
ID: 48399 Updated by: johannes@php.net Reported By: jurgen dot westerhof at gmail dot com -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php The MTA has the job to filter out the BCC header and send the mails there. Concating them into the to field means that they won't be filtered out and can be seen by everybody (who can see the mail). Previous Comments: ------------------------------------------------------------------------ [2009-05-26 11:25:44] jurgen dot westerhof at gmail dot com Description: ------------ Anyone ever noticed that in the HTML mime mail example above (#4) the BCC addresses are added to $header? You don't want recipients to view BCC addresses. This would defeat the purpose of BCC as it would reveal recipients as CC does. This line should be removed from example #4 on function.mail: $headers .= 'Bcc: birthdaycheck@example.com' . "\r\n"; also, these $cc and $bcc addresses are to be concatenated to $to in the last lineof that example: mail($to.$cc.$bcc, $subject, $message, $headers); Reproduce code: --------------- --- From manual page: function.mail --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48399&edit=1

« previous php.doc.bugs (#2388) next »