include('includes/inc_config.php'); include('../includes/mailer.php'); $db = new database(); if($_POST['send']){ $html = file_get_contents('acuse/tmp_contacto.html'); $html = str_replace('{FECHA}',date('d/m/Y H:s'), $html); $html = str_replace('{ASUNTO}', 'Contacto',$html); $html = str_replace('{NOM}', $_POST['nom'],$html); $html = str_replace('{MAIL}', $_POST['mail'],$html); $html = str_replace('{PREGUNTA_1}', $_POST['pregunta_1'],$html); $html = str_replace('{PREGUNTA_2}', $_POST['pregunta_2'],$html); $html = str_replace('{PREGUNTA_3}', $_POST['pregunta_3'],$html); $html = str_replace('{PREGUNTA_4}', $_POST['pregunta_4'],$html); $html = str_replace('{PREGUNTA_5}', $_POST['pregunta_5'],$html); $html = str_replace('{PREGUNTA_6}', $_POST['pregunta_6'],$html); $html = str_replace('{PREGUNTA_7}', $_POST['pregunta_7'],$html); $html = str_replace('{PREGUNTA_8}', $_POST['pregunta_8'],$html); // echo '
';
//print_r($html);
//die;
$mail = new Mailer();
$mail->AddReplyTo($_POST['mail'],$_POST['nom']);
$mail->Subject = $mail->Empresa.' : Contacto';
$mail->Body = $html;
$e = 'o';
if(!$mail->Send()){
$e = 1;$mail->Enviar();
}
//------ EMAIL ACUSE CONTACTO.-------------------------------------------------------
$html = file_get_contents('acuse/tmp_acuse_contacto.html');
$html = str_replace('{FECHA}',date('d/m/Y H:i\h\s'),$html);
$html = str_replace('{NOM}',$_POST['nom'],$html);
$html = str_replace('{MSG}','We received your inquiry, we will contact you as soon as posible.
Best Regards.',$html);
$mail = new Mailer();
$mail->ClearAllRecipients();
$mail->AddAddress($_POST['mail'],$_POST['nom']);
$mail->Subject = $mail->Empresa.' : Acuse de mail';
$mail->Body = $html;
if(!$mail->Send()){
$e = 1;$mail->Enviar();
}
header('Location: '.$_SERVER['PHP_SELF'].'?e='.$e);
exit();
}
?>
Spiritual wisdom of the Americas, You Practise of Ancient Wisdom.
Contacto
Nota de consulta online
You are Your Master, You are Your Healer, You are Your Guide