Mail error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dunefreak
    Senior Member
    • Oct 2000
    • 221

    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
  • tubedogg
    Senior Member
    • Feb 2001
    • 13602

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

    Comment

    • dunefreak
      Senior Member
      • Oct 2000
      • 221

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

      Off-Road Forum

      Comment

      • roy7
        Senior Member
        • Jan 2001
        • 171

        #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

        • dunefreak
          Senior Member
          • Oct 2000
          • 221

          #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

          • roy7
            Senior Member
            • Jan 2001
            • 171

            #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

            • dunefreak
              Senior Member
              • Oct 2000
              • 221

              #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

              • Byron
                Senior Member
                • Nov 2000
                • 525
                • 3.0.0 Beta 6

                #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

                • Mike Sullivan
                  Former vBulletin Developer
                  • Apr 2000
                  • 13327
                  • 3.6.x

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

                  Comment

                  • Byron
                    Senior Member
                    • Nov 2000
                    • 525
                    • 3.0.0 Beta 6

                    #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

                    • Freddie Bingham
                      Former vBulletin Developer
                      • May 2000
                      • 14057
                      • 1.1.x

                      #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...