sendmail: fatal: not allowed to queue mail
Hi there
I'm using mail function in PHP code. But I get the following error. -bash-2.05b$ /usr/bin/php -q sendmail: fatal: not allowed to queue mail <br>Mail failed<br>-bash-2.05b$ What gives!! Where is the problem. Kindly help if you know the answer. Regards Paramvir |
Is the user that the code is running as listed in /etc/mail/access? I stop some users from sending mail on one of my boxes with an access entry like this:
Code:
username@ REJECT |
Quote:
Thanks for the info. But sendmail or mail from the command line works OK. Can I correct it at the PHP level (I mean can I pass some headers to make it work) Thanks |
More info:
This problem occurs on an ISP. So I don't have access to the mentioned file. Moreover sendmail and mail works OK in CGI script and shell scripts. Thanks |
You may need to contact them to see if you can use the mail function through php. Some dissallow it. I was going to suggest seeing if everything looks good in your php.ini file, but I imagine you have no access to that.
|
All times are GMT -5. The time now is 02:27 AM. |