Orgin of request : ".$_POST['orgin']."
";
$email.= "IP Address : ".$_SERVER['REMOTE_ADDR']."
";
$email.= "Name : ".trim($_POST['name'])."
";
$email.= "Email : ".trim($_POST['email'])."
";
$email.= "Telephone : ".trim($_POST['telephone'])."
";
$email.= "Message : ".trim($_POST['message'])."
";
$email.= print_r($_POST,true);
//Replace YourEmailAddress@Yourdomain.com with yours, eg:contactus@mywebsite.com
//Both on the next line and on the mail function below.
$headers = "From: YourEmailAddress@Yourdomain.com\r\n";
$headers .= "Content-Type: text/html";
mail(
"Your Name",
"Contact from Facebook",
$email,
$headers
);
echo "Mail Completed";
?>