Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
95185f79
Commit
95185f79
authored
9 years ago
by
Phy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed uppercase first letter function calls to PHPMailer
parent
fc7a62dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
emails.php
qa-include/app/emails.php
+4
-4
No files found.
qa-include/app/emails.php
View file @
95185f79
...
@@ -130,7 +130,7 @@
...
@@ -130,7 +130,7 @@
$mailer
->
From
=
$params
[
'fromemail'
];
$mailer
->
From
=
$params
[
'fromemail'
];
$mailer
->
Sender
=
$params
[
'fromemail'
];
$mailer
->
Sender
=
$params
[
'fromemail'
];
$mailer
->
FromName
=
$params
[
'fromname'
];
$mailer
->
FromName
=
$params
[
'fromname'
];
$mailer
->
A
ddAddress
(
$params
[
'toemail'
],
$params
[
'toname'
]);
$mailer
->
a
ddAddress
(
$params
[
'toemail'
],
$params
[
'toname'
]);
if
(
!
empty
(
$params
[
'replytoemail'
])){
if
(
!
empty
(
$params
[
'replytoemail'
])){
$mailer
->
addReplyTo
(
$params
[
'replytoemail'
],
$params
[
'replytoname'
]);
$mailer
->
addReplyTo
(
$params
[
'replytoemail'
],
$params
[
'replytoname'
]);
}
}
...
@@ -138,10 +138,10 @@
...
@@ -138,10 +138,10 @@
$mailer
->
Body
=
$params
[
'body'
];
$mailer
->
Body
=
$params
[
'body'
];
if
(
$params
[
'html'
])
if
(
$params
[
'html'
])
$mailer
->
I
sHTML
(
true
);
$mailer
->
i
sHTML
(
true
);
if
(
qa_opt
(
'smtp_active'
))
{
if
(
qa_opt
(
'smtp_active'
))
{
$mailer
->
I
sSMTP
();
$mailer
->
i
sSMTP
();
$mailer
->
Host
=
qa_opt
(
'smtp_address'
);
$mailer
->
Host
=
qa_opt
(
'smtp_address'
);
$mailer
->
Port
=
qa_opt
(
'smtp_port'
);
$mailer
->
Port
=
qa_opt
(
'smtp_port'
);
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
}
}
}
}
$send_status
=
$mailer
->
S
end
();
$send_status
=
$mailer
->
s
end
();
if
(
!
$send_status
){
if
(
!
$send_status
){
@
error_log
(
'PHP Question2Answer email send error: '
.
$mailer
->
ErrorInfo
);
@
error_log
(
'PHP Question2Answer email send error: '
.
$mailer
->
ErrorInfo
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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