Ive made a simple site for some friends who are trying to start a small business and would like some kind of form to email and as far as I can tell the code should be good but its not working. The server is running PHP 5 and everything else works but this.
The Form html
Name: Email: Phone:and the php code is
<?php $to = "[email protected]" ; $subject = "Cheesecake Order"; $name = $_REQUEST['ordername'] ; $email = $_REQUEST['orderemail'] ; $phone = $_REQUEST['orderphone'] ; $message = $_REQUEST['message'] ; $headers = "From: $email"; $sent = mail($to, $subject, $name, $email, $phone, $message, $headers) ; if($sent) {print "Your mail was sent successfully"; } else {print "We encountered an error sending your mail"; } ?>can somebody possibly debug this and tell me what im doing wrong?