Php mail function issue
<p>I'm trying to send a email to user after successfully register. So that following is my .php code.  </p>

<pre><code>$to = $email;                       
$subject = "Signup | Verification";
$message = "Congratulation $f_name $l_name you have been successfully registered. Please 
click the link to active your account.\r\n";
$message .= "http://www.maaks.fr/hotel/verify.php?email=$email&amp;hash=$hash\r\n";

$from = "noreply@yoursite.com";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-rype: text/html; charset=iso-8859-1\r\n";
$headers .= "Content-Transfer-Encoding; 7bit\r\n";
$headers = "From:" . $from . "\r\n";

$sentmail = mail($to,$subject,$message,$headers);                   
if($sentmail)
{
header("Location: thankyou.php?member=successfully");
exit();
}
</code></pre>

<p>It doesn't sent a email to the user. I checked it that if <strong>$sentmail</strong> is ok then It's go <strong>thankyou</strong> page. But interesting matter is that it's go to <strong>thankyou</strong> page without sent a email. </p>

<p>Is there anything i forgot?  </p>
