prepare(); $template->assignGlobal("SITE_URL", SITE_URL); $template->assignGlobal("TITLE", "Formulario de Contactos"); $template->assignGlobal("COMPLETE_NAME", stripQuotes($_POST[complete_name])); $template->assignGlobal("EMAIL", stripQuotes($_POST[email])); if ($_POST[phone]) { $template->newBlock("phone"); $template->assign("PHONE", stripQuotes($_POST[phone])); } if (trim($_POST[comments])) { $template->newBlock("comments"); $template->assign("COMMENTS", nl2br(stripQuotes($_POST[comments]))); } $final_template = $template->getOutputContent(); // SEND EMAIL $mail = new htmlMimeMail(); // EMAIL SUBJECT $subject = SITE_NAME . " - Formulario de contactos"; $mail->setHtml($final_template, $text); $mail->addHTMLImage($mail->getFile(PATH . "images/mail_header.jpg"), "mail_header.jpg", "image/jpeg"); $mail->addHTMLImage($mail->getFile(PATH . "images/mail_bg.jpg"), "mail_bg.jpg", "image/jpeg"); $mail->addHTMLImage($mail->getFile(PATH . "images/mail_footer.jpg"), "mail_footer.jpg", "image/jpeg"); $mail->setReturnPath(RETURN_EMAIL); $mail->setFrom('"' . stripQuotes($_POST[complete_name]) . '" <' . $_POST[email] . '>'); $mail->setSubject($subject); $mail->setHeader('X-Priority', '1'); $addresses = makeEmailsArray(CONTACT_EMAIL); $result = $mail->send($addresses, 'smtp'); header("location: " . $_SERVER['PHP_SELF'] . "?sent=1"); exit; } } ?> <?=META_TITLE?> :: Contacto


$error) { ?>
 
  * Campos obligatorios
Nombre completo *
Dirección de E-mail *
Teléfono de contacto
Comentarios
 
Su consulta ha sido enviada con éxito
Nos pondremos en contacto con usted en breve