php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18624 mail() always return ""
Submitted: 2002-07-29 10:19 UTC Modified: 2002-08-08 14:24 UTC
From: hplagellat at sopragroup dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 4.2.1 OS: AIX 4.3
Private report: No CVE-ID: None
 [2002-07-29 10:19 UTC] hplagellat at sopragroup dot 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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-31 00:39 UTC] 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-08-07 07:01 UTC] msopacua at idg dot 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-08-08 14:02 UTC] msopacua at idg dot nl
Sorry - can't reproduce this, with 4.2.2, php HEAD or stable.

Could you run the test I posted?
 [2002-08-08 14:24 UTC] kalowsky@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 03:01:29 2024 UTC