#14032 [Com]: Mail() always returns false but mail is sent

From: Date: Mon, 25 Nov 2002 10:06:47 +0000
Subject: #14032 [Com]: Mail() always returns false but mail is sent
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25770@lists.php.net to get a copy of this message
ID: 14032 Comment by: jolyon@mways.co.uk Reported By: tetranz@yahoo.com Status: No Feedback Bug Type: Mail related Operating System: FreeBSD 4.2 PHP Version: 4.0.6 New Comment: Using FreeBSD virtual server (verio) I have the same problem - mail() always returns false. Jolyon Previous Comments: ------------------------------------------------------------------------ [2002-07-03 09:01:42] scpark@gen128.com O.K. I hack php's mail.c little bit. I added following code after pclose(). ... fprintf(sendmail, "\n%s\n", message); ret = pclose(sendmail); // start of debuging code php_error(E_WARNING, "%d,%d,%s", ret, errno, strerror(errno)); // end of debuging code #ifdef PHP_WIN32 if (ret == -1) #else ... and php said [03-Jul-2002 21:54:13] PHP Warning: -1,10,No child processes in /web/ch2001/phpdocs/public/icard/test_post.php on line 11 Do you know what this mean? ------------------------------------------------------------------------ [2002-07-03 08:39:45] scpark@gen128.com Oh! I forgot one thing. My php is compiled as cgi. not mod_php. ------------------------------------------------------------------------ [2002-07-03 08:37:10] scpark@gen128.com I have same experience with my solaris box. My machine is Ultra-60 server running Solaris 8. PHP 4.2.1 and 4.1.2 occur same result. Even mail() returns empty value, test mails are posted successfully. Same code run on linux box, very well. No problem on linux. ------------------------------------------------------------------------ [2002-03-07 00:00:04] php-bugs@lists.php.net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-02-18 03:08:21] brett@mad.scientist.com I'm seeing this same problem. mail() always returns false (looks like a null string). I'm also on FreeBSD with the same version of SendMail (8.11.6) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/14032 -- Edit this bug report at http://bugs.php.net/?id=14032&edit=1

« previous php.bugs (#25770) next »