From:             [EMAIL PROTECTED]
Operating system: Redhat 7.1
PHP version:      4.1.2
PHP Bug Type:     Mail related
Bug description:  Default Additional command of mail()

Hello,

when a user put in his script the mail() function, the mail is sent and we
see in the log from: apache@localdomain
If we set the additional command [EMAIL PROTECTED] so the log become
from: [EMAIL PROTECTED] and any error return mail will be send to fromme
(and no more apache)...
Meanwhile, this news feature is not implemented by all projets in php, of
course, a user can not set this additional command, so, the mail will be
send from apache and it's not recommanded ...
The best will be that if the additional header is not set, so the mail()
function serach the From line in the header and put it as additional
header ...(the Error-to line is not always set, but the from is always)
So, the very best will that if the additional header is not set AND there
is no From line in the normal header, so the mail() return false.
This option can for example, be activated from the php.ini.
So, if a administrator want it, it can force user to set the From line in
the header and/or a additional command to identify mail in the log files
and for not error mal return to apache (and not user)

Thank you very much ...

Best regards,
-- 
Edit bug report at http://bugs.php.net/?id=17513&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17513&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17513&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17513&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17513&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17513&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17513&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17513&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17513&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17513&r=globals

Reply via email to