If I add a gmail email ID in the email field, it works but when I try to send using yahoo, I don't get the email :(
Any idea why this is happening and how do I fix it?
<?php
$name = stripslashes($_POST['name']);
$email = stripslashes($_POST['email']);
$phone = stripslashes($_POST['phone']);
$city = stripslashes($_POST['city']);
$franchise = $_POST['franchise'];
$experience = $_POST['experience'];
$message = stripslashes($_POST['message']);
$form_message = "Name: $name \nEmail: $email \nPhone: $phone \nCity: $city \nFranchise: $franchise \nExperience: $experience";
if ( $_POST['human'] ) {
echo 'Tastes Like Spam!'; exit; }
else {
header( "Location: http://www.example.com/success.php");
mail("me@example.com", "Contact Us", $form_message, "From: $email" );
}
?>