function sendEMail($from, $to, $subject, $body) { $headers = "From: ".$from."\r\n"."Reply-To: ".$from." \r\nX-Mailer: PHP/".phpversion(); @mail($to, $subject, $body, $headers); } if(isset($_POST["email"])) { if(strlen($_POST["email"])>0 && strlen($_POST["text"])>0) sendEMail("info@iqmango.com","support@iqmango.com", "Request from contact form: ".$_POST["subject"], $_POST["name"]."\r\n".$_POST["email"]."\r\n".$_POST["text"] ); } ?>