Sindbad~EG File Manager

Current Path : /home/ssan4778/public_html/06052021/smartphone/
Upload File :
Current File : /home/ssan4778/public_html/06052021/smartphone/send.php

<?php

header("content-type: text/html; charset=UTF-8");

$name = htmlentities($_POST['name'], ENT_QUOTES, "UTF-8");
$email = htmlentities($_POST['mail'], ENT_QUOTES, "UTF-8");
$phone = $_POST['phone'];
$local = htmlentities($_POST['local'], ENT_QUOTES, "UTF-8");
$message_email = htmlentities($_POST['message'], ENT_QUOTES, "UTF-8");
$subject = htmlentities("Contato - Site San House");

//TO E-MAIL
$to = "contato@sanhouse.com.br";

$message = '<table>
              <tr>
                <td>Nome: </td>
                <td>'.$name.'</td>
              </tr>
              <tr>
                <td>E-Mail:</td>
                <td>'.$email.'</td>
              </tr>
              <tr>
                <td>Telefone:</td>
                <td>'.$phone.'</td>
              </tr>
              <tr>
                <td>Local:</td>
                <td>'.$local.'</td>
              </tr>
              <tr>
                <td>Mensagem:</td>
                <td>'.$message_email.'</td>
              </tr>
            </table>
          <br />
          <br />
          <p style="font-size:10px">mensagem enviado via mobile</p>';
        
//Headers
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$headers .= "From: ".$email."\r\n"; // remetente
$headers .= "Return-Path: ".$to."\r\n"; // return-path
$headers .= "Reply-To: ".$email."";
        
if (!(empty($name) && empty($email) && empty($phone) && empty($message_email))):
  mail($to, $subject, $message, $headers);
  echo "<script>alert(\"Mensagem enviada com sucesso! Em breve entraremos em contato!\"); window.location='index.php';</script>";
else:
  echo "<script> alert('Erro! Preencha todos os campos e tente novamente!'); window.location='index.php';";
endif;
exit();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists