/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ include_once '../config.php'; include_once RUTA_CONTROLLERS . '/Usuario_controller.php'; include_once RUTA_RAIZ . '/phpmailer/class.phpmailer.php'; include_once RUTA_RAIZ . '/phpmailer/class.smtp.php'; //include_once( 'phpmailer/templateMail.php' ); extract($_POST); $errorEmail = !filter_var($email, FILTER_VALIDATE_EMAIL) ? true : false; if (!$errorEmail) { $usuario_controller = new Usuario_controller(); $nueva_pass = $usuario_controller->nueva_password($email); if (is_null($nueva_pass)) { header('Location: login.php?error=2'); } else { // $body = Template( $persona_contacto , $telefono , $email , $consulta ); $mail = new PHPMailer(); $mail->Mailer = "smtp"; $mail->Host = "mail.gestores.net"; $mail->SMTPAuth = true; //Le decimos cual es nuestro nombre de usuario y password $mail->Username = "******"; $mail->Password = "******"; //Le indicamos que el servidor smtp requiere autenticación $mail->SMTPAuth = true; $mail->Subject = _("RESETEO DE SUS DATOS DE ACCESO"); // $mail->AltBody = "DATOS DE LA CONSULTA";