<?php

if (isset($_POST['submit'])){
$name=$POST['name'];
$state=$POST['state'];
$subject=$POST['subject'];
$mailfrom=$POST['mail'];

$mailto="jessie.rowley@yahoo.com";
$headers="From:" .$mailfrom;
$txt="You have recieved an e-mail from " .$name. "./n/n".$subject;

mail($mailto, $subject, $text, $headers);
header("Location: contactinfo.php?mailsend");
}
?>