| Server IP : 52.9.100.119 / Your IP : 216.73.216.135 Web Server : Apache/2.4.61 (Amazon) OpenSSL/1.0.2k-fips PHP/7.3.30 Phusion_Passenger/5.1.5 System : Linux ip-172-31-9-35 4.14.355-196.618.amzn1.x86_64 #1 SMP Mon Apr 7 17:09:50 UTC 2025 x86_64 User : root ( 0) PHP Version : 7.3.30 Disable Function : exec,passthru,shell_exec,system,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /data/html/epi/ |
Upload File : |
<?php
$EmailTo="adwords@epimexico.com";
//$headers="From: $Email";
$headers = "From: Contacto EPI México <epi@epimexico.com>\r\n";
$headers .= "Reply-To: adwords@epimexico.com\r\n";
$headers .= "Return-Path: prueba@epimexico.com\r\n";
$headers .= "Cc: dev@studioarsa.com\r\n";
$headers .= "Bcc: prueba@studioarsa.com\r\n";
$headers .= "X-Mailer: Drupal\n";
$headers .= 'MIME-Version: 1.0' . "\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$Subject="Mensaje de contacto - EPI México";
$Name = Trim(stripslashes($_POST['name']));
$Sub = Trim(stripslashes($_POST['subj']));
$Email = Trim(stripslashes($_POST['mail']));
$Phone = Trim(stripslashes($_POST['tel']));
$Message = Trim(stripslashes($_POST['mess']));
// validation
$validationOK=true;
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
exit;
}
// prepare email body text
$Body = "";
$Body .= "Nombre: ";
$Body .= $Name;
$Body .= "\n";
$Body .= "E-mail: ";
$Body .= $Email;
$Body .= "\n";
$Body .= "Teléfono: ";
$Body .= $Phone;
$Body .= "\n";
$Body .= "Asunto: ";
$Body .= $Sub;
$Body .= "\n";
$Body .= "Mensaje: ";
$Body .= $Message;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, $headers);
// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanks.php\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
}
?>