Okay, so I've got a VPS with sendmail running as well as php5. The mail server works because I tested somebody elses php contact script and it succesfully sent me an email via a submit button. I can't however seem to get my script to work. Here it is:
<?php
$name = $_POST['name'];
$visitor_email = $_POST['email'];
$message = $_POST['message'];
$email_from = $visitor_email;
$email_subject = "You got work yo!";
$email_body = $message
$to = "myemail@gmail.com";
$headers = "from: $visitor_email \r\n";
mail($to,$email_subject,$email_body,$headers);
?>
Here is the html
<form action="email.php" name="emailform" method="post">
Name:<input type="text" name="name">
<br/>
Email:<input type="text" name="email">
</br>
Message:<input type="text" name="message">
<input type="submit" value="Send Form">
</form>