SMTPDebug = SMTP::DEBUG_SERVER; // Enable verbose debug output $mail->SMTPDebug = 0; // Enable verbose debug output $mail->isSMTP(); // Send using SMTP $mail->Host = 'smtp.gmail.com'; // Set the SMTP server to send through $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'jefatura.ti@cecytejalisco.edu.mx'; // SMTP username $mail->Password = 'jefaturati.4'; // SMTP password $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged $mail->Port = 587; // TCP port to connect to, use 465 for `PHPMailer::ENCRYPTION_SMTPS` above //Desde que cuenta y a que correo $mail->setFrom('jefatura.ti@cecytejalisco.edu.mx', 'Departamento de Tecnologías de la Información, CECyTE Jalisco'); // Correo desde donde se enviara $mail->addAddress("$email", "$nom"); // Direccion de correo a donde llegara //$mail->addAddress('ellen@example.com'); // Segunda direccion //$mail->addReplyTo('info@example.com', 'Information'); // Reenviar a //$mail->addCC('cc@example.com'); // Con copia para //$mail->addBCC('bcc@example.com'); // Con copia oculta para // Archivos adjuntos //$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments //$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name // Content $mail->isHTML(true); // Permite formato HTML $mail->Subject = 'Recuperacion de clave; Departamento de Tecnologias de la Informacion, CECyTE Jalisco'; // Asunto $mail->Body = '