require "mail.php"; //print_r($_POST); if ($_POST[name] && $_POST[email] && $_POST[comments]) { //if (!sendMail("denis_bochko@hotmail.com", "{$_POST[name]}<{$_POST[email]}>", "Message from thewebsite", $_POST[comments])) if (!mail("info@billiardcentre.com","Message from thewebsite", $_POST[comments], "From: {$_POST[email]}")) $error = "Problems sending email"; else $error = "Message has been sent successfully"; } ?>
|