-----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-----




-- 
PHP Windows 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]

Reply via email to