Date not in mail
<p>I have the following script to send email using SMTP authentication. Everything works fine but date is not shown in my inbox for this mail. It is marked as '?'. Can anybody help me?</p>

<pre><code> require_once "Mail.php";

 $from = "test@example";
 $to = $mailto;
 $subject = $subject;
 $body = $msg;

 $host = "test.com";
 $username = "uname";
 $password = "password";

 $headers = array ('From' =&gt; $from,
   'To' =&gt; $to,
   'Subject' =&gt; $subject,
    'Content-type'=&gt;'text/html');
 $smtp = Mail::factory('smtp',
   array ('host' =&gt; $host,
     'auth' =&gt; true,
     'username' =&gt; $username,
     'password' =&gt; $password));

 $mail = $smtp-&gt;send($to, $headers, $body);

 if (PEAR::isError($mail)) {
   //echo("&lt;p&gt;" . $mail-&gt;getMessage() . "&lt;/p&gt;");
     return false;
  } else {
   //echo("&lt;p&gt;Message successfully sent!&lt;/p&gt;");
     return true;
  }
</code></pre>

<p>The from,host,username and password values shown here are only test values for security.</p>

<p>Is it any problem with mail headers?</p>
