Bug #14535 Updated: Mail function always returns false

From: Date: Sun, 16 Dec 2001 03:45:30 +0000
Subject: Bug #14535 Updated: Mail function always returns false
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-73975@lists.php.net to get a copy of this message
ID: 14535 User updated by: steve@stevegodwin.com Reported By: steve@stevegodwin.com Old Status: Feedback Status: Open Bug Type: Mail related Operating System: FreeBSD 4.1-RELEASE i386 PHP Version: 4.0.6 New Comment: I don't have 4.1.0 loaded on the FreeBSD machine yet, but I received an email this morning from Ross (tetranz@yahoo.com ) who had reported this problem in Bug ID #14032. He tested 4.1.0 yesterday and had the same result as in previous 4.x versions. By the way, my test script runs fine in PHP3 on the FreeBSD machine, so this appears to be limited to PHP 4.x Previous Comments: ------------------------------------------------------------------------ [2001-12-15 22:26:52] yohgaki@php.net Could you try 4.10 and/or snapshot and report the result? http://snaps.php.net/ ------------------------------------------------------------------------ [2001-12-15 12:45:27] steve@stevegodwin.com This is to confirm the bug reported in Bug ID #14032 PHP Apache Module Versions 4.0.4, 4.0.6 FreeBSD 4.1 Installed on a virtual server at Verio The script below runs fine on my WinNT/IIS development server running PHP 4.0.4 as a CGI module. On the FreeBSD virtual server, the same script always returns false, even though the mail message has been sent successfully. Could it be a problem with how sendmail running on FreeBSD is responding (or not responding) to the mail() function? =============================== <?php error_reporting(E_ALL); $mail_to = 'steve@stevegodwin.com'; $mail_subject = 'Test Email'; $mail_message = 'This is a test'; $mail_headers = "From:info@stevegodwin.com\nReply-To:info@stevegodwin.com\n"; $sent = TRUE; $sent = mail($mail_to,$mail_subject,$mail_message,$mail_headers); if ( $sent == TRUE ) print("Mail sent successfully"); else print("Mail was not sent"); ?> ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14535&edit=1

« previous php.dev (#73975) next »