471,318 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

sendmail not working...

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
2 17059
"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
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.

Similar topics

3 posts views Thread by Andrew Benjamin | last post: by
2 posts views Thread by STEPHEN GOODE | last post: by
reply views Thread by Aaron Powell | last post: by
2 posts views Thread by mike | last post: by
1 post views Thread by IamtheEvster | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.