note 87297 added to function.mail

From: Date: Fri, 28 Nov 2008 16:16:20 +0000
Subject: note 87297 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-147071@lists.php.net to get a copy of this message
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 ---- Server IP: 209.41.74.194 Probable Submitter: 70.237.191.13 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/87297 Del: integrated -- https://master.php.net/note/delete/87297/integrated Del: useless -- https://master.php.net/note/delete/87297/useless Del: bad code -- https://master.php.net/note/delete/87297/bad+code Del: spam -- https://master.php.net/note/delete/87297/spam Del: non-english -- https://master.php.net/note/delete/87297/non-english Del: in docs -- https://master.php.net/note/delete/87297/in+docs Del: other reasons-- https://master.php.net/note/delete/87297 Reject -- https://master.php.net/note/reject/87297 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#147071) next »