Bug #68523 [Com]: mail() function returns false but the email was sent.

From: Date: Sat, 29 Nov 2014 10:03:56 +0000
Subject: Bug #68523 [Com]: mail() function returns false but the email was sent.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188840@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 Comment by: dpkshrma01 at gmail dot com Reported by: dpkshrma01 at gmail dot com Summary: mail() function returns false but the email was sent. Status: Open 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: Bug #12335 reports the same issue, but, php version was out-dated, the php version for this bug report was 5.5.9 Previous Comments: ------------------------------------------------------------------------ [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 (#188840) next »