MIME mail contains no date header

From: Date: Tue, 27 Jul 2004 14:00:40 +0000
Subject: MIME mail contains no date header
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13870@lists.php.net to get a copy of this message
I've got an app that uses PEAR classes to send multi-part mail messages based on form input. I have users who have complained that the messages show up with no date. (This has the side affect of getting flagged by SPAM filters more frequently). I have confirmed that this is true. When I simply used PHP's mail() function, I did not have this problem. Here's the code that I'm using: $errorstring=""; if (is_array($recipients) == FALSE) { $recipients = array ($recipients); } $crlf = "\r\n"; $from = $from_address . " (" . $from_name . ")"; $hdrs = array(); $hdrs["From"] = $from; $hdrs["Subject"] = $subject; $hdrs["Reply-To"] = $from_address; $smtparray = array(); $smtparray["host"] = 'localhost'; $smtparray["auth"] = FALSE; $mime = new Mail_mime($crlf); $mime->setTXTBody($plaintextmessage); $mime->setHTMLBody($htmlmessage); $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mailObj =& Mail::factory('smtp',$smtparray); $result = $mailObj->send($recipients, $hdrs, $body); if (PEAR::isError($result)) { return $result -> getMessage(); } else { return "Success."; } Can anyone see something I've missed that would cause the e-mail to be sent without a a date header? Here are the versions of the PEAR modules I've got installed. Archive_Tar 1.2 stable Console_Getopt 1.2 stable DB 1.6.4 stable HTTP 1.2.3 stable Mail 1.1.3 stable Mail_Mime 1.2.1 stable Net_SMTP 1.2.6 stable Net_Socket 1.0.2 stable PEAR 1.3.1 stable XML_Parser 1.2.0 stable XML_RPC 1.1.0 stable Thanks, Sean

« previous php.pear.general (#13870) next »