By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,947 Members | 1,594 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,947 IT Pros & Developers. It's quick & easy.

sendmail not working...

P: n/a
Hello,

I am having a problem with PHP 4.2.2 and RH 8. PHP is working fine except
email.

I have a test script to send mail, I have sendmail_path =
'/usr/lib/sendmail -t -i' set in php.ini, sendmail can send mail from the
command line but if I use the script I get the following error on the http
log file:

sh: line 1: /usr/lib/sendmail -t -i: No such file or directory

as I said sendmail does exist. Any ideas?

Miguel.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.561 / Virus Database: 353 - Release Date: 1/13/2004
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Babaloo" <mi****@forward.net> wrote in message
news:10*************@corp.supernews.com...
Hello,

I am having a problem with PHP 4.2.2 and RH 8. PHP is working fine except
email.

I have a test script to send mail, I have sendmail_path =
'/usr/lib/sendmail -t -i' set in php.ini, sendmail can send mail from the
command line but if I use the script I get the following error on the http
log file:

sh: line 1: /usr/lib/sendmail -t -i: No such file or directory

as I said sendmail does exist. Any ideas?

Miguel.

hmm, might be becouse sendmail is located here:

/usr/sbin/sendmail

--
Mike Bradley
http://www.gzentools.com -- free online php tools
Jul 17 '05 #2

P: n/a
Actually /usr/lib/sendmail is a symlink to /usr/sbin/sendmail which in turn
is a symlink to /etc/alternatives/mta, which actually has the sendmail
executable, RH sillines that allows you to switch between Sendmail and
Potsfix. But the problem was that send_path="/usr/lib/sendmail -t -i" needs
the doublequotes not single quotes as stated in the documentaton, after that
it worked ok.

"CountScubula" <me@scantek.hotmail.com> wrote in message
news:oR****************@newssvr29.news.prodigy.com ...
"Babaloo" <mi****@forward.net> wrote in message
news:10*************@corp.supernews.com...
Hello,

I am having a problem with PHP 4.2.2 and RH 8. PHP is working fine except email.

I have a test script to send mail, I have sendmail_path =
'/usr/lib/sendmail -t -i' set in php.ini, sendmail can send mail from the command line but if I use the script I get the following error on the http log file:

sh: line 1: /usr/lib/sendmail -t -i: No such file or directory

as I said sendmail does exist. Any ideas?

Miguel.

hmm, might be becouse sendmail is located here:

/usr/sbin/sendmail

--
Mike Bradley
http://www.gzentools.com -- free online php tools

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.