Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
don
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
LQDN Adminsys
don
Commits
a351de48
Verified
Commit
a351de48
authored
Oct 13, 2018
by
Guinness
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SMTP calls
parent
49fbbb65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controller/bank.php
app/controller/bank.php
+1
-1
app/controller/perso.php
app/controller/perso.php
+1
-1
No files found.
app/controller/bank.php
View file @
a351de48
...
...
@@ -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"
);
...
...
app/controller/perso.php
View file @
a351de48
...
...
@@ -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"
));
...
...
Write
Preview
Markdown
is supported
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