Doc #66989 [Opn->Nab]: mail() Example #3 has a typographical error

From: Date: Mon, 31 Mar 2014 17:08:07 +0000
Subject: Doc #66989 [Opn->Nab]: mail() Example #3 has a typographical error
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11106@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66989&edit=1 ID: 66989 Updated by: aharvey@php.net Reported by: michaeldeweil at gmail dot com Summary: mail() Example #3 has a typographical error -Status: Open +Status: Not a bug Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: This is correct: sendmail specifies -f as not having a space after it, per http://www.freebsd.org/cgi/man.cgi?query=sendmail&sektion=8. In practice, MTAs implementing the sendmail interface generally support both, but the PHP manual is technically correct (the best kind of correct). Previous Comments: ------------------------------------------------------------------------ [2014-03-31 17:00:50] michaeldeweil at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.mail --- There is a typographical error in example #3 for the mail function where it shows how to send mail with an additional command line parameter. The displayed version shows the "-f" flag before the "webmaster@example.com" as part of the address ('-fwebmaster@example.com') whereas it probably should not ('-f webmaster@example.com'). ..as the example currently is displayed: mail('nobody@example.com', 'the subject', 'the message', null, '-fwebmaster@example.com'); ..as it probably should be displayed: mail('nobody@example.com', 'the subject', 'the message', null, '-f webmaster@example.com'); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66989&edit=1

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