Fill out this form and we will answer as soon as we can.
if (!$_POST){
?>
}else{
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "Message sent ".date("d/m/Y").":\n\n";
$cuerpo .= "Name: " . $_POST["nombre"] . "\n";
$cuerpo .= "Email: " . $_POST["email"] . "\n";
$cuerpo .= "Telephone: " . $_POST["telefono"] . "\n";
$cuerpo .= "Query: " . $_POST["consulta"] . "\n";
$cabeceras .= 'From: Contact Form' . "\r\n";
//mando el correo...
mail("info@isladelajuventud-cuba.com","Contact Form",$cuerpo,$cabeceras);
$respuesta ='Thank you for sending us the Contact Form.
The message has been sent and our team will contact you soon.' ;
mail("$_POST[email]","Form sent",$respuesta. "\n" .$cuerpo,$cabeceras);
//doy las gracias por el envío
echo "
Thank you for sending us the Contact Form.
The message has been sent and our team will contact you soon.
Some mail servers send the messages to the SPAM folder. We encourage you to check the SPAM FOLDER if our answer email is not in your INBOX.
All the information you have sent will be treated in a confidential manner and for exclusive use of isladelajuventud-cuba.com
";
}
?>
|