"unknown date" via mail()

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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:

$headers = <<<END
From: this@email.com
Date: $date
X-Mailer: PHP v$phpversion
MIME-Version: 1.0
Content-Type: multipart/related; boundary="$boundary"

$date = date("D M j G:i:s T Y");
$Email = 'me@myemail.net';
$subject = 'Test Email';
$message = 'test message';

Re: "unknown date" via mail()

At Tue, 22 May 2007 10:24:25 -0700, Akhenaten let his monkeys type:

Quoted text here. Click to load it

Set $date before you create the $headers. $date is empty in your example.

Site Timeline