Koozali.org: home of the SME Server

activating sendmail for PHP

Stefan Brunnengraeber

activating sendmail for PHP
« on: January 31, 2002, 09:50:56 AM »
Hello,

is there any possibility to get my PHP working with sending emails?
I used the PHP command "mail" at my old server.
At e-smith it doesn't work any more.

So I guess sendmail has to be enabled.
How?

Bye,
Stefan Brunnengräber

Stefan Brunnengraeber

Re: activating sendmail for PHP
« Reply #1 on: January 31, 2002, 11:01:16 AM »
Following things are in the mail logfile:

1012385944.287605500 alert: oh no! lost spawn connection! dying...

1012404618.192665500 qp 1759: to=remote.stefan.brunnengraeber@voith.com, uid=100, ddelay=60.626086, xdelay=60.617036, stat=Deferred (Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/)

So I tried to set the senmail path in PHP.INI but nothing works better than before.

Bye,
Stefan Brunnengraeber

Des Dougan

Re: activating sendmail for PHP
« Reply #2 on: January 31, 2002, 06:34:47 PM »
I've been working on a PHP tutorial on a 5.1 beta server, and have used the mail command successfully with no changes to the shipped PHP configuration.

HTH,

Des Dougan

Filippo Carletti

Re: activating sendmail for PHP
« Reply #3 on: February 01, 2002, 01:49:22 PM »
PHP uses /usr/sbin/sendmail
You can also change the path to sendmail with php.ini variable sendmail_path
A good qmail installation has /usr/sbin/sendmail installed and working.

So, check that you haven't changed php.ini and that /usr/sbin/sendmail is a soft link to /var/qmail/bin/sendmail.

Adam

Re: activating sendmail for PHP
« Reply #4 on: August 15, 2002, 10:20:47 AM »
I am having troubles also. I checked the PHP.INI file in the /etc directory but the header in that file advised me not to change it. The mail settings are set as follows

[mail function]
SMTP                    =       localhost
sendmail_from   =       me@localhost.com

Obviously it is missing the sendmail_path. If I should not change the /etc/php.ini file which one should I change? Also a directory /usr/sbin/sendmail does exist, and according to my PHP documentation it should use that as the default, but for some reason it is not working.

Any comments would be much appreciated.

adam

Adam

Re: activating sendmail for PHP
« Reply #5 on: August 15, 2002, 10:20:54 AM »
I am having troubles also. I checked the PHP.INI file in the /etc directory but the header in that file advised me not to change it. The mail settings are set as follows

[mail function]
SMTP                    =       localhost
sendmail_from   =       me@localhost.com

Obviously it is missing the sendmail_path. If I should not change the /etc/php.ini file which one should I change? Also a directory /usr/sbin/sendmail does exist, and according to my PHP documentation it should use that as the default, but for some reason it is not working.

Any comments would be much appreciated.

adam