note 23444 added to function.mail

From: Date: Thu, 18 Jul 2002 16:30:27 +0000
Subject: note 23444 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-33259@lists.php.net to get a copy of this message
Note that apparently there was a change sometime between 4.0.6 and 4.2.1 that no longer allows spaces in the optional parameter list. In 4.0.6 mail("foo@foo.foo", "subject", "content", "From: no-reply@foo.foo", "-N never"); worked fine, but in 4.2.1 it is simply ignored without an error message other than mail returning false. Changing it to mail("foo@foo.foo", "subject", "content", "From: no-reply@foo.foo", "-N never"); made it work again. -- http://www.php.net/manual/en/function.mail.php http://master.php.net/manage/user-notes.php?action=edit+23444 http://master.php.net/manage/user-notes.php?action=delete+23444 http://master.php.net/manage/user-notes.php?action=reject+23444

« previous php.notes (#33259) next »