From a351de48dc80b6ed2dddf8664d9f46cccad7b9f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Oudin?= <oudin@crans.org>
Date: Sat, 13 Oct 2018 14:33:45 +0200
Subject: [PATCH] Fix SMTP calls

---
 app/controller/bank.php  | 2 +-
 app/controller/perso.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/controller/bank.php b/app/controller/bank.php
index d20b0cd..55197dd 100644
--- a/app/controller/bank.php
+++ b/app/controller/bank.php
@@ -168,7 +168,7 @@ class Bank extends Controller
 
         // Puis envoi du mail
         if ($user["email"]) {
-            $mailer = new SMTP(SMTP_HOST, SMTP_PORT, SMTP_SECURITY, SMTP_USER, SMTP_PW);
+            $mailer = new \SMTP(SMTP_HOST, SMTP_PORT, SMTP_SECURITY, SMTP_USER, SMTP_PW);
             $cb_log->write("Sending email for id: ".$id." at ".$user['email']);
             $mailer->set('From', "contact@laquadrature.net");
             $mailer->set('FromName', "La Quadrature du Net");
diff --git a/app/controller/perso.php b/app/controller/perso.php
index cdf5090..7ff15d3 100644
--- a/app/controller/perso.php
+++ b/app/controller/perso.php
@@ -179,7 +179,7 @@ class Perso extends Controller
 
                 // On le renvoie par email
                 // On utilise le système SMTP de fat free
-                $mailer = new SMTP(SMTP_HOST, SMTP_PORT, SMTP_SECURITY, SMTP_USER, SMTP_PW);
+                $mailer = new \SMTP(SMTP_HOST, SMTP_PORT, SMTP_SECURITY, SMTP_USER, SMTP_PW);
                 $mailer->set('From', $f3->get('mail.from'));
                 $mailer->set('To', $f3->get('email'));
                 $mailer->set('Subject', _("Renouvellement de mot de passe"));
-- 
GitLab