From 82f81b6b2f577bfaf067224288b0553cd5ff0b6e Mon Sep 17 00:00:00 2001 From: thaaoblues Date: Mon, 16 Dec 2024 21:39:37 +0100 Subject: [PATCH] mail --- utils/sendmail.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/sendmail.php b/utils/sendmail.php index 2ee0298..389820b 100644 --- a/utils/sendmail.php +++ b/utils/sendmail.php @@ -28,11 +28,11 @@ class Mail try { $this::$mail = new PHPMailer(true); $this::$mail->isSMTP(); - $this::$mail->Host = "smtp.insa-toulouse.fr"; + $this::$mail->Host = "192.168.200.9"; $this::$mail->SMTPAuth = true; $this::$mail->Username = $mel_id; $this::$mail->Password = $mel_mdp; - $this::$mail->setFrom($mel_adr, 'Club Info INSA Toulouse'); + $this::$mail->setFrom($mel_adr, name: 'Club Info INSA Toulouse'); $this::$mail->isHTML(true); $this::$mail->Subject = 'Inscription sur Arch\'INSA'; $this::$mail->Body = 'Message vide.'; @@ -67,8 +67,8 @@ class Mail $mail_dest=htmlspecialchars($mail_dest); $name_dest=htmlspecialchars($name_dest); $this::$mail->addAddress($mail_dest, $name_dest); - $this::$mail->Port = 465; - $this::$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; + $this::$mail->Port = 25; + //$this::$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; $this::$mail->send(); } catch (Exception $e) { $this::$error=$this::$mail->ErrorInfo;