-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
20 lines (19 loc) · 726 Bytes
/
contact.php
File metadata and controls
20 lines (19 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
$nombre = $_POST['nombre'];
$email = $_POST['email'];
$mensaje = $_POST['mensaje'];
$para = 'saez240@gmail.com, luisjlarrea@hotmail.com';
$titulo = 'Mensaje de la web versión INGLES';
$header = 'From: info@guiaturisticodecordoba.com' . "\r\n" .
$msjCorreo = "Nombre: $nombre\n E-Mail: $email\n Mensaje:\n $mensaje";
if ($_POST['submit']) {
if (mail($para, $titulo, $msjCorreo, $header)) {
echo "<script language='javascript'>
alert('Your message has been sent. We will respond to your request as soon as possible. Thank you very much!');
window.location.href = 'http://eng.guiaturisticodecordoba.com/contact.html';
</script>";
} else {
echo 'Uh-Oh... Something was wrong';
}
}
?>