#18624 [Com]: mail() always return ""

From: Date: Thu, 08 Aug 2002 18:02:26 +0000
Subject: #18624 [Com]: mail() always return ""
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16304@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: Sorry - can't reproduce this, with 4.2.2, php HEAD or stable. Could you run the test I posted? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#16304) next »