#40139 [Com]: Mail command not returning true on success
| From: | geoffwa at cs dot rmit dot edu dot au | Date: | Fri, 13 Apr 2007 00:41:48 +0000 |
| Subject: | #40139 [Com]: Mail command not returning true on success | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111434@lists.php.net to get a copy of this message | ||
ID: 40139
Comment by: geoffwa at cs dot rmit dot edu dot au
Reported By: sab2002a at yahoo dot com
Status: No Feedback
Bug Type: Mail related
Operating System: FreeBSD 5.4
PHP Version: 4.4.4
New Comment:
This looks like a duplicate of bug #38342
Do you need --enable-sigchild for a particular reason?
Previous Comments:
------------------------------------------------------------------------
[2007-01-30 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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".
------------------------------------------------------------------------
[2007-01-22 20:14:06] tony2001@php.net
Please provide an account @ this machine.
------------------------------------------------------------------------
[2007-01-22 18:32:51] sab2002a at yahoo dot com
Some more info...
This is what I have under mail in my php.ini
[mail function]
SMTP = localhost ;for
win32 only
sendmail_from = me@localhost.com ;for win32 only
sendmail_path = /var/qmail/bin/qmail-inject
Also, I'm running netqmail 1.05 with a bunch of patches (spam, virus
checking, etc).
------------------------------------------------------------------------
[2007-01-22 07:17:52] tony2001@php.net
We are still unable to reproduce it.
------------------------------------------------------------------------
[2007-01-20 19:47:55] sab2002a at yahoo dot com
Still the same thing.
Here's the code:
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
if (!mail('email@address.com','test','test','From:
email@address.com'))
echo "An error occurred";
else
echo "no error occurred";
?>
The mail gets delivered and I still get "An error occurred" as the
output with nothing else.
I'm thinking it may be something to do with the way I'm
configuring/compiling.
Here's my configure line:
./configure --with-openssl --enable-calendar --with-curl --with-gd
--with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-ttf
--with-freetype-dir --with-t1lib --enable-gd-native-ttf --with-gettext
--with-gmp --with-iconv --with-mcal --with-mcrypt --with-mhash
--with-mime-magic --with-mysql --with-mysql-lib --with-ncurses
--enable-pcntl --with-jpeg-dir --with-png-dir --with-zlib-dir
--with-tiff-dir --with-pspell --with-mm --enable-sysvsem
--enable-sysvmsg --enable-sysvshm --with-xmlrpc --with-iconv-dir
--enable-xslt --with-xslt-sablot --with-iconv-dir --with-pear
--enable-zend-multibyte --enable-sockets --enable-pcntl
--enable-sigchild --enable-libgcc --enable-trans-sid --enable-ftp
--with-config-file-path=/usr/local/lib --prefix=/usr/local/php
--with-config-file-path=/usr/local/php --disable-cli
--enable-force-cgi-redirect --enable-cgi --enable-mbstring
------------------------------------------------------------------------
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/40139
--
Edit this bug report at http://bugs.php.net/?id=40139&edit=1