#20367 [Com]: mail() function does not work

From: Date: Mon, 18 Nov 2002 15:21:09 +0000
Subject: #20367 [Com]: mail() function does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25191@lists.php.net to get a copy of this message
ID: 20367 Comment by: fab@fluxus.net Reported By: jstotler1@earthlink.net Status: Feedback Bug Type: Mail related Operating System: OSX 10.2.1 PHP Version: 4.2.3 New Comment: I'v got the same problem on a linux redhat,apache 1.3.27 and php 4.2.3; and /var/log/maillog tell nothing, the mail don't arrive to sendmail. I tried to compile php as a binary (not as an apache module) and in this case, the mail functions works fine. I think this bug is resolved in cvs version, but its for a production environment, so cvs isn't a solution for me. I tried to replace mail.c and php_mail.c with the cvs version in 4.2.3 source. All compile fine, but apache refuse to start due to undefined symbol : Cannot load /usr/local/apache/apache_1.3.27/libexec/libphp4.so into server: /usr/local/apache/apache_1.3.27/libexec/libphp4.so: undefined symbol: php_error_docref /opt/apache/apache_1.3.27/bin/apachectl start: httpd could not be started Can I find a patch somewhere for the mail.c function for php 4.2.3 ? thanks Previous Comments: ------------------------------------------------------------------------ [2002-11-11 14:36:24] msopacua@php.net So, what does '/var/log/maillog' tell you? ------------------------------------------------------------------------ [2002-11-11 13:52:56] jstotler1@earthlink.net I am running Apache 1.3.26 and php 4.2.3 on OSX 10.2.1 I have created the /usr/lib/php.ini file, and verified that changes to it are reflected in phpinfo(). The path to sendmail is set correctly. Sendmail functions properly, and I have alleviated the various permissions issues related to sendmail on OSX, as I have been using this box as a mail server for months now. This simple bit of scripting fails: mail("realaddress@earthlink.net", "My Subject", "Line 1\nLine 2\nLine 3"); There are no errors reported in the browser or in error_log, so there is no indication of failure, other than the fact that the email is never recieved. I have found dozens of similar posts in newsgroups and in web forums, but noone has yet found the answer. Searching your online KnowledgeBase and Bug DB come up with no mentions either. If there is any further information or debugging that I can provide, please let me know. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20367&edit=1

« previous php.bugs (#25191) next »