Verified Commit a351de48 authored by Guinness's avatar Guinness

Fix SMTP calls

parent 49fbbb65
......@@ -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");
......
......@@ -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"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment