#18624 [Ana->Csd]: mail() always return ""
| From: | kalowsky@php.net | Date: | Thu, 08 Aug 2002 18:24:20 +0000 |
| Subject: | #18624 [Ana->Csd]: mail() always return "" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16310@lists.php.net to get a copy of this message | ||
ID: 18624
Updated by: kalowsky@php.net
Reported By: hplagellat@sopragroup.com
-Status: Analyzed
+Status: Closed
Bug Type: Mail related
Operating System: AIX 4.3
PHP Version: 4.2.1
New Comment:
Marking this as closed, because another AIX user has stated this works
for them, and I cannot reproduce it on any local tests.
If you can provide any further information which might lead to showing
this to be a bug, please reopen this bug report.
Thanks
Previous Comments:
------------------------------------------------------------------------
[2002-08-08 14:02:26] msopacua@idg.nl
Sorry - can't reproduce this, with 4.2.2, php HEAD or stable.
Could you run the test I posted?
------------------------------------------------------------------------
[2002-08-07 07:01:48] msopacua@idg.nl
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?
------------------------------------------------------------------------
[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