I have followed the tutorial on CSS tricks for a php/jquery contact form. Apparently everything is working but I can't get the form to contact my email. Here is the page: http://www.casciellogroup.com/contatta.html
When I am testing the form from the website after the submission I see the confirmation page but nothing in my email. This is the php:
// redirect to success page // CHANGE THE URL BELOW TO YOUR "THANK YOU" PAGE if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=approvazione.html\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=errore.html\">"; } ?>
With firefox web developer you can see the javascript attached to the page.
I have followed the tutorial on CSS tricks for a php/jquery contact form. Apparently everything is working but I can't get the form to contact my email.
Here is the page:
http://www.casciellogroup.com/contatta.html
When I am testing the form from the website after the submission I see the confirmation page but nothing in my email.
This is the php:
<?php
// CHANGE THE VARIABLES BELOW
$EmailFrom = "GMEOCOLOMBO@YAHOO.COM";
$EmailTo = "GMEOCOLOMBO@YAHOO.COM";
$Subject = "Contatto dal Sito";
$Name = Trim(stripslashes($_POST['Nome']));
$Tel = Trim(stripslashes($_POST['Tel']));
$Email = Trim(stripslashes($_POST['Email']));
$Message = Trim(stripslashes($_POST['Messaggio']));
// prepare email body text
$Body = "";
$Body .= "Name: ";
$Body .= $Name;
$Body .= "\n";
$Body .= "Tel: ";
$Body .= $Tel;
$Body .= "\n";
$Body .= "Email: ";
$Body .= $Email;
$Body .= "\n";
$Body .= "Message: ";
$Body .= $Message;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
// redirect to success page
// CHANGE THE URL BELOW TO YOUR "THANK YOU" PAGE
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=approvazione.html\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=errore.html\">";
}
?>
With firefox web developer you can see the javascript attached to the page.
I don't understand what I am doing wrong. Thanks