From:             [EMAIL PROTECTED]
Operating system: all
PHP version:      4.3.0RC4
PHP Bug Type:     Feature/Change Request
Bug description:  mail() is not descriptive enough

mail is probably the most common used function with the worst set of error
reporting available to it

mail() returns true on success and false on error, but this "false" is all
you can get with php, when as you have to examine the mailer logs to see
if the message acctually failed (i for example get false on the mail()
function, but the email is queued and sent with sendmail)

there should be atleast somekind of trigger_error() sequence which would
spew out a few E_NOTICE or E_WARNING triggers depending on the progress of
mail() - for example.. if the sendmail_path directive isn't configured
properly, some incorrect data (any of the parameters beeing null, empty or
not set), or you cant connect to the mail server (windows - only guessing
that it doesnt report that), or whatever kind of message the mailer spews
out resulting in true/false

any kind of verbosity, even if only trough E_NOTICE or E_WARNING would
really be appreciated, a simple true or false is just not enough when
tracking down why mail() returns false.
-- 
Edit bug report at http://bugs.php.net/?id=21165&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21165&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21165&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21165&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21165&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21165&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21165&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21165&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21165&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21165&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21165&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21165&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21165&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21165&r=isapi

Reply via email to