Unknown Sender PHP (Code inside)
<p>I've created a PHP file to work with my form on my Jqeury mobile site. The form works perfectly and sends the email and errors work and all. But I keep getting the email from an (unknown sender). Subject line and email information is there. (Email coming from the form to host the host email address). Thanks for any help that can be provided. </p>

<pre><code>&lt;?php
if(isset($_POST['email'])){

// Here is the email to information

$email_to = "hostemail@email.com";
$email_subject = "Customer Service Form";
$email_from = "Company";

//error code

function died($error){
    echo "We are sorry, but there were errors found with the form you submitted.";
    echo "These errors appear bellow.&lt;br/&gt;&lt;br/&gt;";
    echo $error. "&lt;br/&gt;&lt;br/&gt;";
    echo "Please go back and fix these errors.&lt;br/&gt;";
    die();
    }
//validation

if(!isset($_POST['name']) ||
!isset($_POST['email']) ||
!isset($_POST['message'])) {
    died('We are sorry but there appears to be a problem with the form you submitted.');
}

$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];

$error_message = "";
//$email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z] {2,4}$/';
//(!preg_match($email_exp, $email)) {
//$error_message .='The Email Address you entered does not appear to be valid.&lt;br/&gt;';
//  }

$string_exp = "/^[A-Za-z.'-]+$/";
if(!preg_match($string_exp, $name)){
    $error_message .= 'The name you entered does not seem to be valid.&lt;br/&gt;';   
    }

if(strlen($message) &lt; 2) {
    $error_message .= 'The comments you entered do not appear to be valid.&lt;br/&gt;';
    }
if(strlen($error_message) &gt; 0 ) {
    died($error_message);
    }

    $email_message = "Form details below. \n\n";

    function clean_string($string) {
        $bad = array("content-type", "bcc:", "to:", "cc:", "href");
        return str_replace($bad, "", $string);
        }

    $email_message .= "Name:" . clean_string ($name) . "\n";
    $email_message .= "E-Mail:" . clean_string ($email) . "\n";
    $email_message .= "Message:" . clean_string ($message) . "\n";

    //create email headers

    $headers = 'From:' .$email_From . "\r\n" . 'Reply-To:' . $email. "\r\n" .
    'X-MAILER: PHP/' . phpversion();
    @mail($email_to, $email_subject, $email_message, $headers);
    ?&gt;

    &lt;!-- Success Message Goes Here --&gt;
    Thank you for contacting us. We will be in touch with you shortly. &lt;br/&gt;
    Please Click &lt;a href="contact.html"&gt; here &lt;/a&gt; to go back to the contact page.

    &lt;?php


}
</code></pre>

<p>?></p>
