So I have a simple form the php code to send shoots out the reply that it was sent but nothing coming in email - why?
PHP Code:
<?php
//if "email" variable is filled out, send email
if (isset($_POST['email'])) {
//Email information
$email_subject = "New Credit Application";
$email_to = "myemail@hotmail.com";
$email_from = $_POST['email'];
$name = $_POST['name'];
$phone = $_POST['phone'];
$referral = $_POST['selection'];
//send email
$email_message .= "Name: ".$name."\n";
$email_message .= "Phone Number: ".$phone."\n";
$email_message .= "Email: ".$email_from."\n";
$email_message .= "Selection: ".$referral."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
$send = mail($email_to, $email_subject, $email_message, $headers);
//Email response
if ($send) {
echo "Thank you for contacting us!";
}else {
echo "Something Went Wrong";
}
}
?>
<< This is not a sales pitch >>