|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2001-11-12 09:39 UTC] tetranz at yahoo dot com
 I can see that this has been reported for Solaris too.
mail() always returns false but mail is sent successfully.
I'm running PHP 4.0.6 as an Apache module on a FreeBSD virtual server host (at digitaldaze.com).
sendmail version is 8.11.6
I can reproduce this with a simple script:
if (mail("tetranz@yahoo.com","Test from PHP","Does this work?"))
	echo "True";
else
	echo "False";
Thanks
Ross
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
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?