Hotel Los Tres Reyes

Hotel de pasajeros

Reservas

Para reservar puede llamar a los siguientes números, escribirnos un mail, o llenar este formulario y en breve nos pondremos en contacto con usted.

To make a reservation please contact us using the following numbers, send an e-mail or fill this short form and we will contact you as soon as be possible.


Tel.: (54-11) 4300-9456 / 4361-4464

Email: hoteltresreyes_stelmo@hotmail.com

You must set-up a valid (to) email address before this contact page will work.

'; } if (isset($_POST['contact_submitted'])) { $return = "\r"; $youremail = trim(htmlspecialchars($_POST['your_email'])); $yourname = stripslashes(strip_tags($_POST['your_name'])); $yourmessage = stripslashes(strip_tags($_POST['your_message'])); $contact_name = "Name: ".$yourname." "; $message_text = "Message: ".$yourmessage.""; $user_answer = trim(htmlspecialchars($_POST['user_answer'])); $answer = trim(htmlspecialchars($_POST['answer'])); $message = " ".$contact_name." ".$return." ".$message_text." ".$return." ".$youremail." "; /*$headers = "From: ".$youremail." \r\n"; $headers .= "Reply-To: ".$youremail." \r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";*/ if (email_is_valid($youremail) && $yourname != "" && $yourmessage != "" && substr(md5($user_answer),5,10) === $answer) { $mail = new PHPMailer(); try { $mail->isSMTP(); $mail->Host = 'smtp.gmail.com'; //gmail SMTP server $mail->SMTPAuth = true; $mail->Username = 'info@loginteg.com.ar'; //username $mail->Password = 'Informes123'; //password $mail->SMTPSecure = 'ssl'; $mail->Port = 465; //smtp port $mail->setFrom("$youremail", "$youremail"); $mail->AddReplyTo("$youremail", "$yourname"); $mail->addAddress("$to", 'New Vision'); //$mail->addAddress("$youremail", "$yourname"); //$mail->addAttachment(__DIR__ . '/attachment1.png'); //$mail->addAttachment(__DIR__ . '/attachment2.jpg'); $mail->isHTML(true); $mail->Subject = "$subject"; $mail->Body = "$message"; if (!$mail->send()) { echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail->ErrorInfo; } else { //echo 'Message has been sent'; echo '

'.$contact_submitted.'

'; } } catch (Exception $e) { echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail->ErrorInfo; } /* mail($to,$subject,$message,$headers); $yourname = ''; $youremail = ''; $yourmessage = '';*/ // echo '

'.$contact_submitted.'

'; } else echo '

Please enter your name, a valid email address, your message and the answer to the simple maths question before sending your message.

'; } $number_1 = rand(1, 9); $number_2 = rand(1, 9); $answer = substr(md5($number_1+$number_2),5,10); $yourname = ''; $youremail = ''; $yourmessage = ''; ?>

Formulario de Contacto

Nombre

Email

Mensaje

Para ayudarnos a prevenir el Spam, por favor ingrese la respuesta a esta pregunta:

+ = ?