require('/home/cpchile/public_html/fxs.inc.php'); require_once('carro/librerias/class.phpmailer.php'); /*if ($_SERVER['REQUEST_METHOD'] == "POST"){ $nombre = strip_tags(mysql_real_escape_string(trim($_POST['nombre']))); $correo = strip_tags(mysql_real_escape_string(trim($_POST['correo']))); $telefono = strip_tags(mysql_real_escape_string(trim($_POST['telefono']))); $comentarios = strip_tags(mysql_real_escape_string(trim($_POST['comentarios']))); $smtp = strip_tags(mysql_real_escape_string(trim($_POST['smtp']))); $pais = strip_tags(mysql_real_escape_string(trim($_POST['select_pais_registro']))); $comentarios = str_replace('\r\n', "\r\n", $comentarios); if ($nombre && $correo && $telefono && $comentarios){ $sql = "SELECT MAX(idconsulta) AS ultima FROM st_consultas"; $rs = db_query($sql); $row = db_fetch($rs); $idconsulta = $row['ultima'] + 1; $sql = "SELECT `texto` FROM `adminsite_descripcion_textos` WHERE `id_texto` = '27'"; $rs = db_query($sql); $row = db_fetch($rs); $frace = "Este es un correo electrónico generado automaticamente. Por favor no responder."; $pie = $row['texto']; $asunto = $idconsulta." Contacto página web "; $asunto = $asunto.$pais." (".$nombre.")"; $te = "Teléfono: "; $mail = new PHPMailer(); $mail->isSMTP(); $mail->CharSet = 'UTF-8'; $mail->SMTPAuth = true; $mail->Mailer = "ssl"; // turn on SMTP authentication $mail->SMTPSecure = "tls"; $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) $mail->Debugoutput = 'html'; $mail->Host = "smtp.office365.com"; $mail->Username = "sucursalvirtual@polymerland.cl"; $mail->Password = "Vir-2233suc"; $mail->Port = 587; $mail->From = "sucursalvirtual@polymerland.cl"; $mail->FromName = "POLYMERSHAPES CHILE S.A"; $mail->AddEmbeddedImage('polymerland_400a.jpg', 'polymershapes','polymerland_400a.jpg'); $mail->Subject = $asunto; $mail->MsgHTML("
Nombre: ".$nombre." Correo: ".$correo." ".$te." ".$telefono." Comentarios: ".$comentarios." ".$frace." ".$pie." |
include('encabezado.inc.php'); ?>
|