Last modified: 2010-05-15 15:41:06 UTC
Windows Server 2003
With unchanged coding the all mailing functions fail with an error from the SMTP
server saying the mail addresses cannot be parsed.
The SMTP protocol shows that PHP is sending the following lines:
From the PHP manual:
Note: The to parameter cannot be an address in the form of "Something
The mail command will not parse this properly while talking with the MTA.
I recommend the following:
For the "To" and the "From" field use only the email-address without name.
In the Body of the message add a Header "From" with content "name <user@domain>.
For documentation refer to RFC 821
(ftp://ftp.rfc-editor.org/in-notes/rfc821.txt), example 7.
The relant coding is in UserMailer.php.
As a short cut bug fix in my installation I changed class MailAdress, function
toString to return the email-adress only.
*** This bug has been marked as a duplicate of 4979 ***