PHP mail() Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eragon
    Contributor
    • Mar 2007
    • 431

    PHP mail() Issue

    Hello, i get a error from my browser when i try to send a email to me whenevre someone posts a topic in my forums. Can you help me with this?

    Heres the error:
    Code:
    Warning: mail() [function.mail]: Safety Restriction in effect. The mail() command is not allowed, contact the admin. in /forums/mboard.php on line 470
    how do i disable the safety restriction?
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    In the server mail() function has been disabled I think.
    check it by running phpinfo().

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Could this be an issue with running PHP in safe mode?

      Comment

      • eragon
        Contributor
        • Mar 2007
        • 431

        #4
        no, my stupid server makes you pay to remove this block!

        Comment

        • kovik
          Recognized Expert Top Contributor
          • Jun 2007
          • 1044

          #5
          That's because the mail() function can be easily abused, and when used, you can send a lot of spam, easily putting your host and other users sharing hosting with you on a blacklist. Once you pay for it, you're less likely to abuse it.

          I'd suggest that you use SwitfMailer and connect to your own e-mail address using an SMTP connection.

          Comment

          • eragon
            Contributor
            • Mar 2007
            • 431

            #6
            ill try that, hey, try and find the eragon vs mary discussion in the cafe... and, do you think mary's dragon avatar is the same as miine? im arguing about that...

            Comment

            Working...