Announcement

Collapse
No announcement yet.

Mail error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mail error

    I am running PHP 4.0.5 on a dedicated and get the following when I try to send e-mails to all members via the admin control panel.

    Warning: mail() is not supported in this PHP build in /home/offroad/public_html/admin/email.php on line 147
    It seems to be telling me there is something to check in the PHP setup. Where should I look. php.ini?

    php 4.0.5
    vB 2.0.1
    Off-Road Forum

  • #2
    Are you using the stable version of 4.0.5 or a beta or PL?

    Comment


    • #3
      It was installed by VO on my dedicated server.

      http://www.offroadforum.com/phpinfo.php
      Off-Road Forum

      Comment


      • #4
        It says sendmail_path is "-t -i" which is wrong. It shoudl specify where sendmail is. It should probably be something like "/usr/sbin/sendmail -t -i " or similar. If sendmail_path is told the correct location to run sendmail from, perhaps your problem will go away.

        -Jonathan

        Comment


        • #5
          I located sendmail and changed the path in the php.ini to /usr/sbin/sendmail -t -i and also tried /usr/lib/sendmail -t -i and neither works. Any other ideas?
          Off-Road Forum

          Comment


          • #6
            Hmm. Maybe you need to recompile and tell it to enable mail. But I didn't even know that was an option you can turn on/off. Maybe check the docs on php.net.

            -Jonathan

            Comment


            • #7
              My host upgraded PHP to 4.0.6 and recompiled. I do not know if the upgrade was a necessity or if they just did it as a matter of course, but now it works!!!!!!!!!!!!!!!!!
              Off-Road Forum

              Comment


              • #8
                I am getting the same error.

                Warning: mail() is not supported in this PHP build in /home/____/public_html/boards/newreply.php on line 200

                PHP Version 4.0.6
                Build Date Jul 19 2001
                Last edited by Byron; Tue 26 Feb '02, 7:27pm.
                .

                Comment


                • #9
                  You'll need to get your host to recompile, and make sure the mailing functions are supported.

                  Comment


                  • #10
                    Thanks Mike,

                    I've told my host abt it and the problem is solved.
                    Last edited by Byron; Tue 26 Feb '02, 7:28pm.
                    .

                    Comment


                    • #11
                      Here is your answer:
                      Turns out, when you run configure it checks to see if sendmail exists. If it doesn't at that time you get the above error, otherwise it will work fine. If I remember correctly it looks for /usr/sbin/sendmail
                      Taken from php.net's mail function page.

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...
                      X