Bug #68523 [Opn->Nab]: mail() function returns false but the email was sent.

From: Date: Mon, 01 Dec 2014 20:27:43 +0000
Subject: Bug #68523 [Opn->Nab]: mail() function returns false but the email was sent.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188875@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68523&edit=1 ID: 68523 Updated by: aharvey@php.net Reported by: dpkshrma01 at gmail dot com Summary: mail() function returns false but the email was sent. -Status: Open +Status: Not a bug Type: Bug Package: Mail related Operating System: Kubuntu 14.04 PHP Version: 5.6Git-2014-11-29 (snap) Block user comment: N Private report: N New Comment: This is likely to be a system configuration issue: your sendmail binary is evidently returning a non-zero error code, even though it's delivering the message, and PHP is faithfully reporting the result. You should probably look into your MTA logs to see what error is occurring. Previous Comments: ------------------------------------------------------------------------ [2014-11-29 10:03:56] dpkshrma01 at gmail dot com Bug #12335 reports the same issue, but, php version was out-dated, the php version for this bug report was 5.5.9 ------------------------------------------------------------------------ [2014-11-29 10:00:55] dpkshrma01 at gmail dot com Description: ------------ mail() function returns boolean false but the email was recieved on the other end. Test script: --------------- <?php error_reporting(E_ALL); ini_set('display_errors', 1); $to = 'mail@email.com'; // sample email var_dump(mail( $to, 'checking mail return value', "It is just a test mail.")); // output : boolean false // but mail is recieved at mail@email.com Expected result: ---------------- boolean true Actual result: -------------- boolean false ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68523&edit=1

« previous php.bugs (#188875) next »