PHP Mail problems

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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() [
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_port = 25

; For Win32 only.
sendmail_from =

My config is:
PHP 5.05
Apache 2

Any help/pointers much appreciated!


Re: PHP Mail problems

Quoted text here. Click to load it

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.

Site Timeline