Bug #12680 Updated: mail() is sent with incorrect timezone

From: Date: Mon, 18 Feb 2002 20:52:08 +0000
Subject: Bug #12680 Updated: mail() is sent with incorrect timezone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-519@lists.php.net to get a copy of this message
ID: 12680 Updated by: daniel@nospam.se -Reported By: justin.white@wcom.com +Reported By: daniel@nospam.se Status: Closed Bug Type: Mail related Operating System: Windows NT 4.0 SP6 PHP Version: 4.0.6 New Comment: I found a solution to this problem! I'm running W2k with IIS5 and PHP 4.1.1. The mail function has the following parameters, mail($mail_to, $mail_subject, $mail_body, $mail_headers); Just add date("r") to the header like: $mail_headers .= "\nDate: " . date("r"); And the email header will have the correct date! - daniel Previous Comments: ------------------------------------------------------------------------ [2002-02-08 06:05:17] daniel@nospam.se I'm running 4.1.1 on a W2k/IIS5, the bug is not fixed, in which relase was the bug fix included? - daniel ------------------------------------------------------------------------ [2002-01-30 21:05:50] chank01@yahoo.com Where can I find out when this bug fix is going to be released? Also where can I find out which bug fixes where included in previous release? TIA chank ------------------------------------------------------------------------ [2001-11-30 04:29:27] derick@php.net Fixed in CVS ------------------------------------------------------------------------ [2001-08-10 11:01:14] justin.white@wcom.com This happens with just PHP. As I said, I can directly connect to port 25 and manually enter SMTP commands to send an email (see second mail header sample). The timezone correctly shows -0500 for CDT. The time listed in the PHP-created email shows the time correctly, but doesn't show the timezone correctly (see first mail header sample). ------------------------------------------------------------------------ [2001-08-10 10:45:12] alindeman@php.net something similar has been reported as a bug in 4.0 and was assigned to hholzgra. I don't know if it has been fixed. Suspended until I can contact him and see if he's fixed it. If anybody else knows anything about this, second opinion is welcome. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/12680 -- Edit this bug report at http://bugs.php.net/?id=12680&edit=1

« previous php.bugs (#519) next »