note 87297 rejected from function.mail by thiago
| From: | thiago@php.net | Date: | Fri, 28 Nov 2008 16:20:13 +0000 |
| Subject: | note 87297 rejected from function.mail by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147072@lists.php.net to get a copy of this message | ||
Note Submitter: jgriffith at thegfz dot com
----
Hey guys, i have a question for you. I have the following code:
[code]
mail($to, $subject, $message, "From: $authorname <$authoremail>\nX-Mailer: PHP/" .
phpversion());
[/code]
My problem here is that emails be posted through this code are now being rejected by a host for not
conforming to RFC2822, stating there is no valid date in the header. How would one code the
inclusion of the origin date into the mail() function?
Thanks,
Jeremiah