ID: 40139 Updated by: [EMAIL PROTECTED] Reported By: sab2002a at yahoo dot com -Status: Open +Status: Feedback Bug Type: Mail related Operating System: FreeBSD 5.4 PHP Version: 4.4.4 New Comment:
Set display_errors to On and error_reporting to E_ALL. Previous Comments: ------------------------------------------------------------------------ [2007-01-15 20:31:17] sab2002a at yahoo dot com Description: ------------ I have PHP setup as a CGI and am using qmail as my mail server. When I use the mail() function, on success, I do not get a true return on the function. I get no return. On failure, I do get a false return. Reproduce code: --------------- <?php if (!mail('[EMAIL PROTECTED]','test','test','From: [EMAIL PROTECTED]')) echo "An error occurred"; else echo "no error occurred"; ?> Expected result: ---------------- Expect to see "no error occurred" and email sent. Actual result: -------------- The email gets sent but I get a "An error occurred" message. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40139&edit=1