php mail() headers problem
<p>here is my code....</p>

<pre><code>$subject = "This is Subject";
$headers .= 'Content-type: text/html; charset=iso-8859-1';  
$to = 'foo@foo.com';
$body = 'Mail Content Here';        
mail($to, $subject, $body, $headers);
</code></pre>

<p>but when i open this file it sends a mail to <code>$to</code> successfully but with wrong headers....and my hosting server default address i.e mars.myhosting.com, instead of mydomain@domain.com how can i fix that</p>
