-------------------------------------------------------------- */ $message_html = "<b>Nombre:</b> " . $_POST["txtName"] . "<br />"; $message_html .= "<b>Email:</b> " . $_POST["txtEmail"] . "<br />"; $message_html .= "<b>Telefono:</b> " . $_POST["txtPhone"] . "<br />"; $message_html .= "<b>Consulta:</b>"; $message_html .= '<hr color="#093D6C">'; $message_html .= nl2br($_POST["txtConsult"]); $message_plaintext = "Nombre: " . $_POST["txtName"] . "\n"; $message_plaintext .= "Email: " . $_POST["txtEmail"] . "\n"; $message_plaintext .= "Telefono: " . $_POST["txtPhone"] . "\n"; $message_plaintext .= "Consulta:\n\n"; $message_plaintext .= $_POST["txtConsult"]; $email = new fEmail(); $email->addRecipient(EMAIL_CONTACT, EMAIL_CONTACT_NAME); // Destinatario $email->setFromEmail($_POST["txtEmail"], $_POST["txtName"]); // Remitente $email->setBounceToEmail(EMAIL_CONTACT); // En caso de que rebote llegara a la direccion ingresada. $email->setSubject(EMAIL_CONTACT_SUBJECT); // Asunto $email->setBody($message_plaintext); // Cuerpo del mensaje (texto plano) $email->setHTMLBody($message_html); // Cuerpo del mensaje (texto html) $email->send(); } catch (fValidationException $e) { echo $e->getMessage(); die; } die("ok");
die("sendmail_error"); }*/ //$to=$_POST["email_to"]; $to = "*****@*****.**"; $to_name = "Ivan"; $subject = "Recomendación"; try { /* Envia email -------------------------------------------------------------- */ $message_html = $_POST["html"]; $message_plaintext = " "; $email = new fEmail(); $email->addRecipient($to, $_SESSION["name"]); // Destinatario $email->setFromEmail($_SESSION["username"], $_SESSION["name"]); // Remitente $email->setBounceToEmail($to); // En caso de que rebote llegara a la direccion ingresada. $email->setSubject($subject); // Asunto $email->setBody($message_plaintext); // Cuerpo del mensaje (texto plano) $email->setHTMLBody($message_html); // Cuerpo del mensaje (texto html) $email->send(); } catch (fValidationException $e) { $message = $e->getMessage(); die($message); } ?>
$message_html .= '<b>Formulario de Consulta: </b><span>' . get_result("chk3") . '</span><br>'; $message_html .= '<b>Música de fondo: </b><span>' . get_result("chk4") . '</span><br>'; $message_html .= '<b>Video: </b><span>' . get_result("chk5") . '</span><br>'; $message_html .= '<b>Sistema de carga y actualización de contenidos del sitio: </b><span>' . get_result("chk9") . '</span><br>'; $message_html .= '<b>Español e Inglés: </b><span>' . get_result("chk10") . '</span><br>'; $message_html .= '<b>Configuración de un Foro </b><span>' . get_result("chk11") . '</span><br>'; $message_html .= '<b>Animaciones en flash: </b><span>' . get_result("chk6") . '</span><br>'; $message_html .= '<b>Catálogo, Base de datos de productos (sin venta on-line): </b><span>' . get_result("chk7") . '</span><br>'; $message_html .= '<b>Catálogo, Base de datos de productos (con venta on-line y carrito de compras): </b><span>' . get_result("chk8") . '</span><br>'; $message_html .= '<b>Chat On-Line: </b><span>' . get_result("chk12") . '</span><br>'; } $message_html .= '<b>Comentarios:</b><br>' . nl2br($_POST["txtComment"]); $message_plaintext = strip_tags($message_html); $email = new fEmail(); $email->addRecipient(EMAIL_PRESP, EMAIL_PRESP_NAME); // Destinatario $email->setFromEmail($_POST["txtEmail"], $_POST["txtName"]); // Remitente $email->setBounceToEmail(EMAIL_PRESP); // En caso de que rebote llegara a la direccion ingresada. $email->setSubject(EMAIL_PRESP_SUBJECT); // Asunto $email->setBody($message_plaintext); // Cuerpo del mensaje (texto plano) $email->setHTMLBody($message_html); // Cuerpo del mensaje (texto html) $email->send(); } catch (fValidationException $e) { $error = true; $error_message = $e->getMessage(); }