"Stalmannen" <[EMAIL PROTECTED]> wrote in message
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.
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:
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php