The code below only is suppost to send a email once but it sends it twice. Any one see a problem with the code?
//send email
$myname = $POST['name'];
$myemail = $POST['email'];
$date_now = DATE("M d Y");
$contactname = "Webmaster of blah.com";
$contactemail = "Webmaster@blah.com";
$message = "Name: $myname \n";
$message .= "Email: ".$_POST['email']." \n";
$message .= "Sitename: ".$_POST['sitename']." \n";
$message .= "SiteURL: ".$_POST['siteurl']." \n";
$message .= "BannerURL: ".$_POST['bannerurl']." \n";
$message .= "Date Applied: ".$date_now." \n";
$subject = "New Network Site Application";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$myname." <".$myemail.">\r\n";
$headers .= "To: ".$contactname." <".$contactemail.">\r\n";
$headers .= "Reply-To: ".$myname." <$myemail>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: blah";
mail($contactemail, $subject, $message, $headers);