PHP Mail problems

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

    PHP Mail problems

    Hi all,

    I've got a problem with sending mail from my local box! Anytime I try to
    send mail through a script I get the following error:

    Warning: mail() [
    function.mail]:
    SMTP server response: 501 Bad address syntax in ***

    I know it's not the script as it works fine on my hosts web server...


    PHP ini snip is as follows

    [mail function]
    ; For Win32 only.
    SMTP = smtp.metronet.c om
    smtp_port = 25

    ; For Win32 only.
    sendmail_from = MyMail@tesco.ne t


    My config is:
    PHP 5.05
    Apache 2

    Any help/pointers much appreciated!

    Tobierre


  • Joshie Surber

    #2
    Re: PHP Mail problems

    > I've got a problem with sending mail from my local box! Anytime I try to[color=blue]
    > send mail through a script I get the following error:
    >
    > Warning: mail() [
    > function.mail]:
    > SMTP server response: 501 Bad address syntax in ***[/color]

    This is not a PHP problem -- you need to fix your SMTP server
    (sendmail, postfix, or whatever)
    Start by making sure your config file is accurate, you may want to use
    WebMin for this since MTA config files are famous for being hairy. If
    that doesn't help, try downloading the the most recent version, and
    compile from source if possible.

    Comment

    Working...