Menu

sending task email

2001-12-07
2001-12-07
  • Nobody/Anonymous

    Hiya, I keep getting this error. Man.... I think this project is really nice and simple. I use the KISS (Keep it simple stupid) method myself. My survey project on freshmeat will be released soon.. all written in php.

    Warning: Wrong parameter count for mail() in /var/www/html/ipm-0.8/index.php on line 267

    any idea???

     
    • phlux

      phlux - 2001-12-07

      This most likely means you are using a version of PHP before 4.0.5.

      The mail function in 0.8 uses a new PHP feature that shipped with php 4.0.5 and above. Either upgrade to a newer PHP or edit line 267 in the index.php file to read like this:
      <snip>
      mail("$address[0]", "A new task has been assigned to you.", "$message");
      </snip>

      Hopefully that should fix it.

       
    • Nobody/Anonymous

      nada... that did not fix it. Mhhh.... I'm going in to take a closer look at the code...let me know if your discover anything.

      Thanks for the reply

       
      • phlux

        phlux - 2001-12-07

        What version of PHP are you using? Are you running sendmail or another MTA? Does the mail() function work in other code on your server? Give me some more info here. The error is in your config somewhere, the code should work.

         
    • Nobody/Anonymous

      oh okay.... sorry about the lack of info ...

      running red hat 7.1 with 2.4.3 kern
      php version 4.0.4
      MTA sendmail

      I'm searching through the newsgroups, and I think there is a bug report on the mail() for some reason. Mhhh.... I'm still looking. For some reason, instead of upgrading right now, I would like to know what buggy problem php had with that mail () function. Interesting.... let me know if you find anything guy... and thanks for the reply.

       

Log in to post a comment.

MongoDB Logo MongoDB