PHP5 WinXP Mail SMTP Failure because of an unknown reason
Posted on 2004-10-26
I've got a problem when I try to send out an email.
It seems that PHP or something else is messing up the to-header and thus the smtp server doesn't know what to do with it.
IIS SMTP Server (also tried my ISP's smtp)
Headers that I'm sending out:
X-Mailer: Doppy Server Mailer
From: "Source adress" <email@example.com>
To: "firstname.lastname@example.org" <email@example.com>; "firstname.lastname@example.org" <email@example.com>
CC: "firstname.lastname@example.org" <email@example.com>
Subject: Just Testing again...
note: I replaced the names with the adres to find out if that solved it, it didn't.
Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:\ServerHTTP\Internal\storage\classes\email.php on line 50
When I leave out the CC-header the message is:
Warning: mail() [function.mail]: SMTP server response: 503 No recipient(s). in D:\ServerHTTP\Internal\storage\classes\email.php on line 50
PHP.ini configuration is set to use the smtpserver on localhost default port.
Anyone got any idea what is going on here??