Posted by Akhenaten on 05/22/07 17:24
Probably something simple but all email I send via mail() is received
with an "unknown date" stamp. Am I missing something in my header?
Code as follows:
*****************************
<?php
$headers = <<<END
From: this@email.com
Date: $date
X-Mailer: PHP v$phpversion
MIME-Version: 1.0
Content-Type: multipart/related; boundary="$boundary"
END;
$date = date("D M j G:i:s T Y");
$Email = 'me@myemail.net';
$subject = 'Test Email';
$message = 'test message';
mail($Email,$subject,$message,$headers);
********************************
[Back to original message]
|