[PHP-DEV] Bug #12680 Updated: Re: mail() is sent with incorrect timezone

2001-08-09 Thread justin . white

ID: 12680
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: mail() is sent with incorrect timezone
Status: Open
Bug Type: Mail related
Operating System: Windows NT 4.0 SP6
PHP Version: 4.0.6
New Comment:

Here's the portion of the script that governs mail:

if (isset($mail_from) || isset($mail_cc)) {
  $mail_headers = From: $mail_from\r\nReply-to: $mail_from\r\n;

  if (isset($mail_cc)  ($mail_cc != )) {
$mail_headers = $mail_headers . Cc: $mail_cc\r\n;
  }
}
else {
  $mail_headers = ;
}

if (isset($mail_to)  isset($mail_subject)  isset($mail_body)  
isset($mail_headers)  ($submit == Submit)) {

  mail($mail_to, $mail_subject, $mail_body, $mail_headers);



Previous Comments:


[2001-08-09 17:23:17] [EMAIL PROTECTED]

I think I have a bug with the Win32 version of php.exe (perhaps the ISAPI version 
also?) where the SENT time on every email that goes out shows up as incorrect.  I've 
tried it several times, even with multiple versions (also tested 4.0.4pl1 and 4.0.5).  
No matter what I try, any email sent by php's mail() function is received with the 
wrong timezone (so mail time appears correct, but received from earlier time because 
of zone).

I am not using any addons for PHP.  I have IIS 4.0 using PHP in CGI mode, with the 
SMTP service loaded locally.  I am also running mySQL 3.23.37.

I can successfully telnet to port 25 on that server and send myself an email using 
SMTP commands.  I'll post my mail script shortly.

Any thoughts?





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12680 Updated: Re: mail() is sent with incorrect timezone

2001-08-09 Thread justin . white

ID: 12680
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: mail() is sent with incorrect timezone
Status: Open
Bug Type: Mail related
Operating System: Windows NT 4.0 SP6
PHP Version: 4.0.6
New Comment:

Here's headers from a bad email:

Return-Path: [EMAIL PROTECTED]
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by
  XXX.XXX.XXX.XXX (Netscape Messaging Server 4.15) with
ESMTP
  id GHT2IQ00.KNI; Thu, 9 Aug 2001 14:49:38 + 
Return-path: [EMAIL PROTECTED]
Received: from CONVERSION-DAEMON by dgismtp03.wcomnet.com (PMDF V5.2-33
#42262)
 id [EMAIL PROTECTED]; Thu,
 9 Aug 2001 14:49:37 + (GMT)
Received: from XXX.wcomnet.com by XXX.wcomnet.com
 (PMDF V5.2-33 #42262) with SMTP id
[EMAIL PROTECTED];
 Thu, 09 Aug 2001 14:49:36 + (GMT)
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX])
 by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 with ESMTP id [EMAIL PROTECTED]; Thu,
 09 Aug 2001 14:49:14 + (GMT)
Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com  with Microsoft
 SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 09:41:11 -0500
Date: Thu, 09 Aug 2001 09:41:11 +0600
From: [EMAIL PROTECTED]
Subject: XXX
X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Reply-to: [EMAIL PROTECTED]
Message-id: [EMAIL PROTECTED]

Previous Comments:


[2001-08-09 17:27:30] [EMAIL PROTECTED]

Here's the portion of the script that governs mail:

if (isset($mail_from) || isset($mail_cc)) {
  $mail_headers = From: $mail_from\r\nReply-to: $mail_from\r\n;

  if (isset($mail_cc)  ($mail_cc != )) {
$mail_headers = $mail_headers . Cc: $mail_cc\r\n;
  }
}
else {
  $mail_headers = ;
}

if (isset($mail_to)  isset($mail_subject)  isset($mail_body)  
isset($mail_headers)  ($submit == Submit)) {

  mail($mail_to, $mail_subject, $mail_body, $mail_headers);





[2001-08-09 17:23:17] [EMAIL PROTECTED]

I think I have a bug with the Win32 version of php.exe (perhaps the ISAPI version 
also?) where the SENT time on every email that goes out shows up as incorrect.  I've 
tried it several times, even with multiple versions (also tested 4.0.4pl1 and 4.0.5).  
No matter what I try, any email sent by php's mail() function is received with the 
wrong timezone (so mail time appears correct, but received from earlier time because 
of zone).

I am not using any addons for PHP.  I have IIS 4.0 using PHP in CGI mode, with the 
SMTP service loaded locally.  I am also running mySQL 3.23.37.

I can successfully telnet to port 25 on that server and send myself an email using 
SMTP commands.  I'll post my mail script shortly.

Any thoughts?





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12680 Updated: Re: mail() is sent with incorrect timezone

2001-08-09 Thread justin . white

ID: 12680
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: mail() is sent with incorrect timezone
Status: Open
Bug Type: Mail related
Operating System: Windows NT 4.0 SP6
PHP Version: 4.0.6
New Comment:

Here's the headers from the email I sent via telnet:

Return-Path: [EMAIL PROTECTED]
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by
  XXX.wcomnet.com (Netscape Messaging Server 4.15) with ESMTP
  id GHTIG600.IEW for [EMAIL PROTECTED]; Thu, 9 Aug 2001
  20:33:42 + 
Return-path: [EMAIL PROTECTED]
Received: from CONVERSION-DAEMON by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Thu,
 9 Aug 2001 20:33:42 + (GMT)
Received: from XXX.wcomnet.com by XXX.wcomnet.com
 (PMDF V5.2-33 #42262) with SMTP id [EMAIL PROTECTED] for
 [EMAIL PROTECTED]; Thu, 09 Aug 2001 20:33:39 + (GMT)
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX])
 by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 with ESMTP id [EMAIL PROTECTED] for
 [EMAIL PROTECTED]; Thu, 09 Aug 2001 20:32:57 + (GMT)
Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com  with Microsoft
 SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 15:24:25 -0500
Date: Thu, 09 Aug 2001 15:24:52 -0500
From: [EMAIL PROTECTED]
Bcc: 
Message-id: [EMAIL PROTECTED]

This is a test message 

Previous Comments:


[2001-08-09 17:32:37] [EMAIL PROTECTED]

Here's headers from a bad email:

Return-Path: [EMAIL PROTECTED]
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX]) by
  XXX.XXX.XXX.XXX (Netscape Messaging Server 4.15) with
ESMTP
  id GHT2IQ00.KNI; Thu, 9 Aug 2001 14:49:38 + 
Return-path: [EMAIL PROTECTED]
Received: from CONVERSION-DAEMON by dgismtp03.wcomnet.com (PMDF V5.2-33
#42262)
 id [EMAIL PROTECTED]; Thu,
 9 Aug 2001 14:49:37 + (GMT)
Received: from XXX.wcomnet.com by XXX.wcomnet.com
 (PMDF V5.2-33 #42262) with SMTP id
[EMAIL PROTECTED];
 Thu, 09 Aug 2001 14:49:36 + (GMT)
Received: from XXX.wcomnet.com ([XXX.XXX.XXX.XXX])
 by XXX.wcomnet.com (PMDF V5.2-33 #42262)
 with ESMTP id [EMAIL PROTECTED]; Thu,
 09 Aug 2001 14:49:14 + (GMT)
Received: from XXX.XXX.XXX.XXX by XXX.wcomnet.com  with Microsoft
 SMTPSVC(5.5.1774.114.11); Thu, 09 Aug 2001 09:41:11 -0500
Date: Thu, 09 Aug 2001 09:41:11 +0600
From: [EMAIL PROTECTED]
Subject: XXX
X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Reply-to: [EMAIL PROTECTED]
Message-id: [EMAIL PROTECTED]



[2001-08-09 17:27:30] [EMAIL PROTECTED]

Here's the portion of the script that governs mail:

if (isset($mail_from) || isset($mail_cc)) {
  $mail_headers = From: $mail_from\r\nReply-to: $mail_from\r\n;

  if (isset($mail_cc)  ($mail_cc != )) {
$mail_headers = $mail_headers . Cc: $mail_cc\r\n;
  }
}
else {
  $mail_headers = ;
}

if (isset($mail_to)  isset($mail_subject)  isset($mail_body)  
isset($mail_headers)  ($submit == Submit)) {

  mail($mail_to, $mail_subject, $mail_body, $mail_headers);





[2001-08-09 17:23:17] [EMAIL PROTECTED]

I think I have a bug with the Win32 version of php.exe (perhaps the ISAPI version 
also?) where the SENT time on every email that goes out shows up as incorrect.  I've 
tried it several times, even with multiple versions (also tested 4.0.4pl1 and 4.0.5).  
No matter what I try, any email sent by php's mail() function is received with the 
wrong timezone (so mail time appears correct, but received from earlier time because 
of zone).

I am not using any addons for PHP.  I have IIS 4.0 using PHP in CGI mode, with the 
SMTP service loaded locally.  I am also running mySQL 3.23.37.

I can successfully telnet to port 25 on that server and send myself an email using 
SMTP commands.  I'll post my mail script shortly.

Any thoughts?





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]