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');
?>