Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
a351de48
Verified
Commit
a351de48
authored
Oct 13, 2018
by
Guinness
Browse files
Fix SMTP calls
parent
49fbbb65
Changes
2
Show whitespace changes
Inline
Side-by-side
app/controller/bank.php
View file @
a351de48
...
@@ -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"
);
...
...
app/controller/perso.php
View file @
a351de48
...
@@ -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"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment