sendmail not working...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Babaloo

    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


  • CountScubula

    #2
    Re: sendmail not working...

    "Babaloo" <miguel@forward .net> wrote in message
    news:10189ns261 k0864@corp.supe rnews.com...[color=blue]
    > 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.[/color]


    hmm, might be becouse sendmail is located here:

    /usr/sbin/sendmail

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


    Comment

    • Miguel Sarmiento

      #3
      Re: sendmail not working...

      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.

      "CountScubu la" <me@scantek.hot mail.com> wrote in message
      news:oRWQb.5831 $7U4.208@newssv r29.news.prodig y.com...[color=blue]
      > "Babaloo" <miguel@forward .net> wrote in message
      > news:10189ns261 k0864@corp.supe rnews.com...[color=green]
      > > Hello,
      > >
      > > I am having a problem with PHP 4.2.2 and RH 8. PHP is working fine[/color][/color]
      except[color=blue][color=green]
      > > 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[/color][/color]
      the[color=blue][color=green]
      > > command line but if I use the script I get the following error on the[/color][/color]
      http[color=blue][color=green]
      > > log file:
      > >
      > > sh: line 1: /usr/lib/sendmail -t -i: No such file or directory
      > >
      > > as I said sendmail does exist. Any ideas?
      > >
      > > Miguel.[/color]
      >
      >
      > hmm, might be becouse sendmail is located here:
      >
      > /usr/sbin/sendmail
      >
      > --
      > Mike Bradley
      > http://www.gzentools.com -- free online php tools
      >
      >
      >[/color]


      Comment

      Working...