Verified Commit a351de48 authored by Guinness's avatar Guinness
Browse files

Fix SMTP calls

parent 49fbbb65
...@@ -168,7 +168,7 @@ class Bank extends Controller ...@@ -168,7 +168,7 @@ class Bank extends Controller
// Puis envoi du mail // Puis envoi du mail
if ($user["email"]) { 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']); $cb_log->write("Sending email for id: ".$id." at ".$user['email']);
$mailer->set('From', "contact@laquadrature.net"); $mailer->set('From', "contact@laquadrature.net");
$mailer->set('FromName', "La Quadrature du Net"); $mailer->set('FromName', "La Quadrature du Net");
......
...@@ -179,7 +179,7 @@ class Perso extends Controller ...@@ -179,7 +179,7 @@ class Perso extends Controller
// On le renvoie par email // On le renvoie par email
// On utilise le système SMTP de fat free // 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('From', $f3->get('mail.from'));
$mailer->set('To', $f3->get('email')); $mailer->set('To', $f3->get('email'));
$mailer->set('Subject', _("Renouvellement de mot de passe")); $mailer->set('Subject', _("Renouvellement de mot de passe"));
......
Supports Markdown
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