LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Problems with mailing from PHP (https://www.linuxquestions.org/questions/linux-general-1/problems-with-mailing-from-php-18567/)

NetScripter 04-15-2002 11:50 AM

Problems with mailing from PHP
 
Here is my problem: I just have moved my mailing php script from one server to another. Old's mail server was Courier and everything was fine, but the new X-mail server does'n let me to send a mail. There is a message in apache error file:
sh: permissions denied
when I attempting to call php mail() function.
The path to sendmail is correctly set to /var/MailDir/bin/sendmail in php.ini
Does anyone can help me?

figmentium 03-10-2003 03:23 PM

hi, if you're still around (lol), did you ever get this problem solved? I'm experiencing a similar problem.

I'm curious if anyone else has any input about this problem under this situation.

I am using RedHat 7.3, PHP 4.3.1 and Apache 1.3.27... I installed Xmail, which replaces my sendmail, and simulates it ....

The problem i'm having is when using a php form to send a form by email using the mail() function. I installed apache with ./configure --prefix=/etc/apache --enable-module=so and then installed PHP ./configure --with-mysql --with-apxs=/www/bin/apxs .

Yes, my php.ini is configured.

By accident or fluke, I happened to install apache over top the existing apache and then the email form started working... i'm very puzzled by this. I would like to work under normal circumstances (if there are any lol).

I don't understand why it would work by reinstalling it over again and not the way its installed now.

I've since reformatted and did a fresh install of everything. And I get the same issue.

Thank you very much for any input :D

***additional info: I just went hunting for some log files and I found some in my apache error logs... it says:

sh: /usr/sbin/sendmail: /bin/bash: bad interpreter: Permission denied

I'm not sure what to do now... :(


All times are GMT -5. The time now is 10:29 PM.