#40952 [Com]: mail: Malformed date header (H0600)
| From: | davinderkumar at gmail dot com | Date: | Fri, 02 Oct 2009 18:19:03 +0000 |
| Subject: | #40952 [Com]: mail: Malformed date header (H0600) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-143192@lists.php.net to get a copy of this message | ||
ID: 40952
Comment by: davinderkumar at gmail dot com
Reported By: sh at nnoncarey dot com
Status: No Feedback
Bug Type: Mail related
Operating System: Windows Server 2003
PHP Version: 4.4.6
New Comment:
I am experiencing the same problem in PHP Version 5.2.0. This happens
when emails are sent using PHP script running through php.exe inside
Windows Schedular. Emails received are stale due to incorrect time-zone
stamp as following:
Date: Mon, 28 Sep 2009 04:52:12 H0700
I am using Windows Server 2003 (Enterprise Edition).
Same script works fine if executed through the browser.
Previous Comments:
------------------------------------------------------------------------
[2007-05-04 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-04-26 09:11:54] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2007-04-12 07:33:25] tony2001@php.net
On Windows PHP talks SMTP to the server, so this is possible (though
unlikely, otherwise it would have been noticed years ago).
On Linux PHP just calls sendmail binary and passes all the data to it,
so look for a problem there, definitely not PHP problem.
------------------------------------------------------------------------
[2007-04-11 22:55:03] cipri at php dot ne
The same happens on PHP 5.1.2 on a Linux FC6 server. However the entire
header gets malformed here:
Fri, 12 Apr 2007 00:48:19 -2200
The accurate date would be:
Thu, 12 Apr 2007 00:48:19 +0200
I've send mails manually via telnet to my mailserver without a date
header thinking it might be the cause, but it adds correct mails, so the
problem clearly lies within the PHP implementation of mail()
------------------------------------------------------------------------
[2007-04-05 21:37:14] sh at nnoncarey dot com
<?
/*
Smallest script to duplicate bug
http://bugs.php.net/bug.php?id=40952
*/
ini_set('SMTP', 'mail.sys.ilstu.edu');
mail('scarey@mail.sys.ilstu.edu', 'subject', "message\n");
?>
------------------------------------------------------------------------
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/40952
--
Edit this bug report at http://bugs.php.net/?id=40952&edit=1