include_once("inc/conexion.php"); require_once("mailer/Email.php"); $textt = tomarRegistro($mysqli, "textos", "id='5'"); $success_msg = ""; $error_msg = ""; if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['comment']) && isset($_POST['author']) && isset($_POST['email'])) { $comment = trim($_POST['comment']); $author = trim($_POST['author']); $email_user = trim($_POST['email']); if (!empty($comment) && !empty($author) && !empty($email_user)) { $email_sender = new Email(); // 1. Aviso de nueva solicitud a administrador $mailAsunto = "Nueva Solicitud de Contacto - La Voz Oral"; $mailContenido = "
Nombre: " . htmlspecialchars($author) . "
Email: " . htmlspecialchars($email_user) . "
Mensaje:
" . nl2br(htmlspecialchars($comment)) . "
Hemos recibido tu solicitud de contacto correctamente. Nos pondremos en contacto contigo a la brevedad.
Tu mensaje fue:
" . nl2br(htmlspecialchars($comment)) . "
Saludos,
Equipo de La Voz Oral