| Server IP : 177.55.116.72 / Your IP : 216.73.217.104 Web Server : Apache System : Linux UBAPCWEB27 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 User : web_hotelpraiadoc ( 3326) PHP Version : 8.2.20 Disable Function : proc_open, passthru, escapeshellcmd, exec, shell_exec, system, ini_alter, dl, popen, php_check_syntax, show_source, highlight_file, symlink, link, openlog, apache_child_terminate MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/hotelpraiadoconde.com.br/public/backup/estrutura/ |
Upload File : |
<?php
/* Destinat�rio */
$to = $_POST['recipient']; //. ", " ; // Observe a v�rgula
//$to .= "kelly@example.com";
/* assunto */
$subject = "Hotel Praia do Conde Reservas Online";
/* mensagem */
$message = "
<html>
<head>
<title>Hotel Praia do Conde Reservas Online</title>
</head>
<body>
<h3>Hotel Praia do Conde Reservas Online</h3>
<p>Nome: {$_POST['nome']}<br />
E-mail: {$_POST['email']}<br />
DDD: {$_POST['ddd']}<br />
Telefone: {$_POST['telefone']}<br/ >
Estado: {$_POST['estado']}<br/ >
Cidade: {$_POST['cidade']}<br/ >
Data de chegada: {$_POST['datachegada']}<br/ >
Data de retorno: {$_POST['dataretorno']}<br/ >
N�mero de Adultos: {$_POST['adultos']}<br/ >
N�mero de Crian�as: {$_POST['criancas']}
<p>{$_POST['mensagem']}</p>
</body>
</html>
";
/* Aten��o se voc� pretende inserir numa vari�vel uma mensagem html mais
complexa do que essa sem precisar escapar os carateres
necess�rios pode ser feito o uso da sintaxe heredoc, consulte tipos-string-sintaxe-heredoc */
/* Para enviar email HTML, voc� precisa definir o header Content-type. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* headers adicionais */
$headers .= "To: ".$_POST['recipient']."\r\n"; //, Kelly <kelly@example.com>\r\n"
$headers .= "From: ".$_POST['nome']." <".$_POST['email'].">\r\n";
//$headers .= "Cc: birthdayarchive@example.com\r\n";
//$headers .= "Bcc: birthdaycheck@example.com\r\n";
/* Enviar o email */
mail($to, $subject, $message, $headers);
header("location: {$_POST['redirect']}");
?>