Re: [PHP4BETA] mail() doesn't work : bug ?

From: Date: Wed, 10 Nov 1999 14:35:29 +0000
Subject: Re: [PHP4BETA] mail() doesn't work : bug ?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-6108@lists.php.net to get a copy of this message
> | Sorry, there's no truss on the NetBSD box I have access to (either it > | doesn't exist or root didn't install it). > | man truss -> man trace but trace doesn't seem to exist neither. > | > | I can't get debugger_on() to work. > > debugger_on() won't help you. I'm pretty confident there's something > wrong with your PHP or sendmail configuration, mail() works on all the > boxes I have running PHP4. > > Since you say that Mail and sendmail from Perl scripts work, it is > probably the PHP configuration. Try removing the sendmail_path option > from php.ini and see what happens. Also, if you specify it, make sure you > use quotes, like this: > > sendmail_path = "/usr/sbin/sendmail -t" I tried various setups : sendmail_path = /usr/sbin/sendmail -t phpinfo() reports /usr/sbin/sendmail -t sendmail_path = "/usr/sbin/sendmail -t" phpinfo() reports /usr/sbin/sendmail -t sendmail_path = phpinfo() reports no value [no sendmail_path line] phpinfo() reports /usr/sbin/sendmail -t But none of these actually sent a mail (and the following script always reported "mailok"). My mail.phtml script follows : <? if (mail("cahagn_o@epita.fr", "My Subject", "Line")) { echo mailok; } else { echo mailnotok; } phpinfo(); ?> This is PHP 4.0b2 running in module version with engine set to off and only set to on in the httpd.conf for <Directory [RootDirectory]>. (I also tried with engine on all the time) safe_mode is also off. This also seems to happen with PHP 3.0.12 running as CGI (via suEXEC). -- Olivier Cahagne snina@ambafrance.org olivier.cahagne@epita.fr Tel: (613) 593 7406 Ambassade de France au Canada Service Culturel 464, Wilbrod St. K1N 6M8, Ottawa, Ontario, Canada

« previous php.version4 (#6108) next »