Re: mail headers
| From: | Corey Bakalarski | Date: | Wed, 13 Feb 2002 15:37:02 +0000 |
| Subject: | Re: mail headers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84620@lists.php.net to get a copy of this message | ||
"Stalmannen" <d99ksv@efd.lth.se> wrote in message
news:001f01c1b485$ea5dcb30$6900a8c0@web...
Hej!
I have a question. I send mail from a php-script with the mail()-function.
However the smtp server I use has a wrong time set. Can I set the sent-time
through the headers so I take my web-servers time? and how then?
Thankfull for help.
/Kalle
-----------
Add this line to your headers string for the mail function:
$headers .="Date: ".date("r")."\r\n";
This should do it, provided your SMTP server allows you to set the Date:
header.
--Corey