Mail function not sending all headers

my code is only sending 1 of the $message and that is $type if any one can see what i have done wrong
cheers
Doug

//compose the mail message  
$date = date('r');
$to = "xxxxxxx@gmail.com";
$subject = 'New record';
$headers = "From: $email\\r\
"; 
$headers .= "Date: $date\\r\
"; 
$headers .= "MIME-Version: 1.0\\r\
";   
$headers .= "Content-Type: text/plain; charset=UTF-8\\r\
\\r\
";
$message = "Name: $name\\r\
"; 
$message .= "State: $state\\r\
";
$message .= "Type: $type";
if (mail($to, $subject, $message, $headers) === false)
    echo 'Failed to send the message, sorry.';
else
 header('Location: thanks.php');  

?> 

Looks like the code you posted here is different from one used on the site

sorry its my age
had to diff email functions depending on what was posted
1 worked
1 didnt
never thought about using the one that worked because diff situ
still i have sorted it now
many thanks again
and sorry for being so dumb
Doug