Re: mail() Function and time
| From: | Marck D. Pearlstone | Date: | Wed, 04 Apr 2001 16:57:09 +0000 |
| Subject: | Re: mail() Function and time | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6501@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
(talks to self),
On 04 April 2001 at 13:47:05 +0100 (which was 13:47 where I live)
Marck D. Pearlstone wrote to James Moore and made these points:
JM>> One option is to set your own valid date header using the extra
JM>> argument to mail.
MDP> Doing this (from a server in the UK), using:
MDP> mail( $to, $subj, $body, "Date: ".date("r"));
MDP> I get a date of:
MDP> Date: Wed, 4 pr 2001 13:00:00 -0100
MDP> which makes the cure worse than the problem!
The answer (for the UK) is to use this construct:
mail( $to, $subj, $body, "Date: ".date( "D, j M Y G:i:s +0I00"));
This should be customised for the source timezone using stuff like:
date( "D, j M Y G:i:s -0".6-date(I)."00")
and
date( "D, j M Y G:i:s +0700")
- --
Cheers -- .\\arck D. Pearlstone -- Consultant Software Engineer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ PGP Key ID: 0x929DCDA0 | www: http://www.silverstones.com ]
Headline - Air Head Fired
-----BEGIN PGP SIGNATURE-----
Version: 6.5.8ckt (build 04)
Comment: PGP Sealed for freshness
iQA/AwUBOstSZTnkJKuSnc2gEQJ67ACg/bggcBGf4hEXF2u5gc+xwfra1/wAn2xU
4CnaBgVMtYc3XDMqAZu7SVKe
=mX3Q
-----END PGP SIGNATURE-----