|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-03-15 14:27 UTC] francky dot leclerc at free dot fr
Php4.1.2 win32 binaries download from php.net !
I'm trying to send a mail from my server with a little simple script.
mail("myadd@org.com","MySubject","MyMail")
The mail arrive, but the time 'send time' was with a bad gmt time.
System mail
gmt+0100 gmt-0100
gmt-0100 gmt+0100
gmt+0000 gmt+0100
gmt+0200 gmt-0200
The mail function in win32 system exchange the sign of the gmt.
To Walk around this problem I send a 'Date' header with the good gmt set :
$header = "Date: ".date("D, d M Y H:i:s O");
Thanks for debug.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 05:00:02 2025 UTC |
$header="Date: ".date("r"); Simplified Header !Actually the problem is what is being returned by the date() function. For example, the following function call: date('O') returns: -0800 when the timezone on the server is definitely set to +0800. I presume that the mail command is simply calling the date function and that is why it is wrong. Previn