ID:               14828
 Updated by:       [EMAIL PROTECTED]
-Reported By:      [EMAIL PROTECTED]
+Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Date/time related
 Operating System: Windows NT4 SP6a
 PHP Version:      4.1.1
 New Comment:

I too have stumbled unto this problem.  A workaround is to add the
following "Date" header to the mail() function call.

"Date: ".date("D, j M Y H:i:s -0600")."\r\n"

In my case, I'm at CST so -0600 is what does it for me.  Change yours
as necessary.

Here's how I use it in my code:

mail($emailToAddress,
$g_welcomeMessageSubjectLine,
$welcomeMessage,
"From: ".$g_sendWelcomeMsgFrom."\r\n".
"Date: ".date("D, j M Y H:i:s -0600")."\r\n");

The mail then arrives with the correct timestamp in the user's mailbox.


Previous Comments:
------------------------------------------------------------------------

[2002-01-08 09:56:43] [EMAIL PROTECTED]

This is similar in configuration to Bug #12680.

------------------------------------------------------------------------

[2002-01-03 12:07:18] [EMAIL PROTECTED]

I experienced a similar problem in php 4.06, but the time was only off
by 6 hours.  Now the time is off by 12 hours.  Here's a sample of the
mail headers...notice the "Date" line:

Return-Path: <[EMAIL PROTECTED]>
Received: from dgismtp03.wcomnet.com ([166.38.58.143]) by
          pmmsg00.wcomnet.com (Netscape Messaging Server 4.15) with
ESMTP
          id GPDFZW00.ALE for <[EMAIL PROTECTED]>; Thu, 3 Jan 2002
          16:47:56 +0000 
Return-path: [EMAIL PROTECTED]
Received: from CONVERSION-DAEMON by dgismtp03.wcomnet.com (PMDF V5.2-33
#42262)
 id <[EMAIL PROTECTED]> for [EMAIL PROTECTED];
Thu,
 3 Jan 2002 16:47:55 +0000 (GMT)
Received: from dgismtp03.wcomnet.com by dgismtp03.wcomnet.com
 (PMDF V5.2-33 #42262) with SMTP id
<[EMAIL PROTECTED]> for
 [EMAIL PROTECTED]; Thu, 03 Jan 2002 16:47:55 +0000 (GMT)
Received: from smtp.wcomnet.com ([166.35.132.178])
 by dgismtp03.wcomnet.com (PMDF V5.2-33 #42262)
 with ESMTP id <[EMAIL PROTECTED]> for
 [EMAIL PROTECTED]; Thu, 03 Jan 2002 16:47:29 +0000 (GMT)
Received: from dlab - 166.35.132.178 by smtp.wcomnet.com  with
Microsoft
 SMTPSVC(5.5.1774.114.11); Thu, 03 Jan 2002 10:47:36 -0600
Date: Thu, 03 Jan 2002 10:47:36 +0600
From: [EMAIL PROTECTED]
Subject: D Lab RVA# 1178-02 for Project 1178 - AN-30 (Data Regression)
X-Sender: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Reply-to: [EMAIL PROTECTED]
Message-id: <[EMAIL PROTECTED]>
X-Mailer: D Lab RVA System
X-Priority: 1


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=14828&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to