RE: [PHP] mail() only working with php-cli

2007-05-07 Thread Andy B.
. A simple error message like "/usr/sbin/sendmail: permission denied" would have made it. Regards, Andy -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 01:01 To: Andy B. Cc: php-general@lists.php.net Subject: Re: [PHP] mail() only

RE: [PHP] mail() only working with php-cli

2007-05-07 Thread Richard Lynch
On Sat, May 5, 2007 5:04 pm, Andy B. wrote: > Both are exactly the same, as I copied the CLI version into the Apache > Version. Of course I first tested with the original Apache php.ini > before > overwriting it with the CLI version. I'm not quite sure what you are saying here, but the CLI version

Re: [PHP] mail() only working with php-cli

2007-05-07 Thread Richard Lynch
On Sat, May 5, 2007 3:53 pm, Andy B. wrote: > Is there any way to debug the mail() function within PHP4 or PHP5? Check Apache error logs. Check sendmail (or whatever) error logs. > The following code is not working when called from a browser, but it > does > work from the command line: Often poi

Re: [PHP] mail() only working with php-cli

2007-05-06 Thread Tijnema !
ld also try to su to the user PHP is running on and then try to access the sendmail binary. Tijnema -Original Message- From: Oliver Block [mailto:[EMAIL PROTECTED] Sent: Saturday, May 05, 2007 23:58 To: php-general@lists.php.net Cc: Andy B. Subject: Re: [PHP] mail() only working with php-c

RE: [PHP] mail() only working with php-cli

2007-05-06 Thread Andy B.
3:58 To: php-general@lists.php.net Cc: Andy B. Subject: Re: [PHP] mail() only working with php-cli Hello Andy, did you take a look into the apache log files? Regards, Oliver Am Samstag, 5. Mai 2007 22:53 schrieb Andy B.: > Is there any way to debug the mail() function within PHP4 or PHP5? > &

Re: [PHP] mail() only working with php-cli

2007-05-05 Thread Oliver Block
Hello Andy, did you take a look into the apache log files? Regards, Oliver Am Samstag, 5. Mai 2007 22:53 schrieb Andy B.: > Is there any way to debug the mail() function within PHP4 or PHP5? > > The following code is not working when called from a browser, but it does > work from the command l

RE: [PHP] mail() only working with php-cli

2007-05-05 Thread Andy B.
ve already tested with E_ALL and also dumping errors/warnings into log files... Andy -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Saturday, May 05, 2007 23:58 To: Andy B. Cc: php-general@lists.php.net Subject: Re: [PHP] mail() only working with php-cli Are you

Re: [PHP] mail() only working with php-cli

2007-05-05 Thread Tijnema !
On 5/5/07, Andy B. <[EMAIL PROTECTED]> wrote: Is there any way to debug the mail() function within PHP4 or PHP5? The following code is not working when called from a browser, but it does work from the command line: php and php-cli use the same php.ini file. Php via Apache is launched as a mo

[PHP] mail() only working with php-cli

2007-05-05 Thread Andy B.
Is there any way to debug the mail() function within PHP4 or PHP5? The following code is not working when called from a browser, but it does work from the command line: php and php-cli use the same php.ini file. Php via Apache is launched as a module, NOT as CGI! sendmail_path is correctly se