Bug #11184 Updated: mail() is not supported in this PHP build
| From: | sniper@php.net | Date: | Tue, 19 Jun 2001 00:31:54 +0000 |
| Subject: | Bug #11184 Updated: mail() is not supported in this PHP build | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56875@lists.php.net to get a copy of this message | ||
ID: 11184
Updated by: sniper
Reported By: alragom@yahoo.com
Old-Status: Feedback
Status: Closed
Bug Type: Mail related
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
No feedback. (and works fine for me)
Previous Comments:
---------------------------------------------------------------------------
[2001-05-30 06:20:29] sniper@php.net
Is the /usr/sbin/sendmail a regular file or a link?
Check the main/php_config.h file for HAVE_SENDMAIL
define. If it is not set, edit the file and add this line:
#define HAVE_SENDMAIL 1
Then just do 'make ; make install' and same for Apache
and you should be able to use mail() again.
--Jani
---------------------------------------------------------------------------
[2001-05-30 01:24:22] alragom@yahoo.com
PHP was configured with the following :
./configure
--with-mysql=/usr/local/mysql
--with-xml
--with-openssl=../openssl-0.9.6a
--with-gettext
--with-apache=../apache_1.3.20
--enable-track-vars
--enable-force-cgi-redirect
--with-imap=../imap-2001.BETA.SNAP-0105251616
--with-imap-ssl
This is the simple mail script I used to test the mail() function :
<?php
$mail_to = "alragom@yahoo.com";
$mail_subject = "PHP test mail() ";
$mail_body = " i hope that this mail() function works ! n";
$mail_body .= " this is supposed to come on the second line n";
$mail_body .= " and this on the third line n";
if (mail($mail_to, $mail_subject, $mail_body))
echo "Successfully sent the email "$mail_subject" to $mail_to .";
else echo "Failed to send the e-mail "$mail_subject"." ;
?>
I using qmail 1.03 so I used the sendmail wrapper, the only change made to the default php.ini file
was this :
sendmail_path = /usr/sbin/sendmail -t
Upon running the above mentioned script, I get the error
mail() is not supported in this PHP build on line 9
Failed to send the e-mail "PHP test mail() ".
Therefore I tried recompiling php-4.0.4pl1 and installing it, and was able to run the same script
with no errors !
I hope that this problem is resolved.
Thanks a lot !
Firas
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11184&edit=2