#18624 [Com]: mail() always return ""
| From: | msopacua at idg dot nl | Date: | Wed, 07 Aug 2002 11:01:49 +0000 |
| Subject: | #18624 [Com]: mail() always return "" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16140@lists.php.net to get a copy of this message | ||
ID: 18624
Comment by: msopacua@idg.nl
Reported By: hplagellat@sopragroup.com
Status: Analyzed
Bug Type: Mail related
Operating System: AIX 4.3
PHP Version: 4.2.1
New Comment:
Yep, I do.
Couldn't reproduce with 4.2.0RC1/CLI, but will try current HEAD and
STABLE.
Full self-contained short script:
<?php
ini_set('sendmail_path', '/usr/sbin/sendmail -t -i');
$adresse_dest = 'msopacua@idg.nl';
$sujet = 'test';
$message='testmessage';
$extra_header='From: aix43 <aix@php.net>';
$ret_mail=mail($adresse_dest,$sujet,$message,$extra_header);
print("***$ret_mail***\n");
?>
Please note that I use a full path. Does that help in your case?
Previous Comments:
------------------------------------------------------------------------
[2002-07-31 00:39:57] kalowsky@php.net
Unable to reproduce this on FreeBSD 4.6, or OSX. Possibly an AIX
specific. Anyone have access to an AIX box?
------------------------------------------------------------------------
[2002-07-29 10:19:15] hplagellat@sopragroup.com
When I execute the following code,
$ret_mail=mail($adresse_dest,$sujet,$message,$extra_header);
The variable $ret_mail contains always the NULL value, even if the mail
is really send.
So the program cannot control any execution error or success.
The sendmail version is 8.9.3.
Configure command : ./configure --without-mysql
--with-oracle=/oracle/ora817 --with-oci8=/oracle/ora817
--with-apache=/usr/local/apache_1.3.24 --enable-track-vars
--enable-sigchild
sendmail_path = sendmail -t -i
Thanks for your help
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18624&edit=1