Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Stefan Brunnengraeber 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
-
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
-
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
-
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.
-
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
-
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