|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-03 12:07 UTC] whitej at gmx dot net
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: <dlab-rva-system@lists.wcom.com>
Received: from dgismtp03.wcomnet.com ([166.38.58.143]) by
pmmsg00.wcomnet.com (Netscape Messaging Server 4.15) with ESMTP
id GPDFZW00.ALE for <justin.white@wcom.com>; Thu, 3 Jan 2002
16:47:56 +0000
Return-path: jack.duruji@wcom.com
Received: from CONVERSION-DAEMON by dgismtp03.wcomnet.com (PMDF V5.2-33 #42262)
id <0GPD00H01FZVN5@dgismtp03.wcomnet.com> for justin.white@wcom.com; 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 <0GPD00H01FZ8HB@dgismtp03.wcomnet.com> for
justin.white@wcom.com; 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 <0GPD00FAVFZ5EE@dgismtp03.wcomnet.com> for
justin.white@wcom.com; 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: jack.duruji@wcom.com
Subject: D Lab RVA# 1178-02 for Project 1178 - AN-30 (Data Regression)
X-Sender: <jack.duruji@wcom.com>
To: justin.white@wcom.com
Cc: justin.white@wcom.com
Reply-to: jack.duruji@wcom.com
Message-id: <001c53647160312ESERVER@smtp.wcomnet.com>
X-Mailer: D Lab RVA System
X-Priority: 1
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
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.