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
6680bc96
Commit
6680bc96
authored
Apr 26, 2016
by
Scott
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #407 from phy25/patch-4
Change from / reply-to for feedback form
parents
604746da
95185f79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
emails.php
qa-include/app/emails.php
+7
-4
feedback.php
qa-include/pages/feedback.php
+4
-3
No files found.
qa-include/app/emails.php
View file @
6680bc96
...
...
@@ -130,15 +130,18 @@
$mailer
->
From
=
$params
[
'fromemail'
];
$mailer
->
Sender
=
$params
[
'fromemail'
];
$mailer
->
FromName
=
$params
[
'fromname'
];
$mailer
->
AddAddress
(
$params
[
'toemail'
],
$params
[
'toname'
]);
$mailer
->
addAddress
(
$params
[
'toemail'
],
$params
[
'toname'
]);
if
(
!
empty
(
$params
[
'replytoemail'
])){
$mailer
->
addReplyTo
(
$params
[
'replytoemail'
],
$params
[
'replytoname'
]);
}
$mailer
->
Subject
=
$params
[
'subject'
];
$mailer
->
Body
=
$params
[
'body'
];
if
(
$params
[
'html'
])
$mailer
->
I
sHTML
(
true
);
$mailer
->
i
sHTML
(
true
);
if
(
qa_opt
(
'smtp_active'
))
{
$mailer
->
I
sSMTP
();
$mailer
->
i
sSMTP
();
$mailer
->
Host
=
qa_opt
(
'smtp_address'
);
$mailer
->
Port
=
qa_opt
(
'smtp_port'
);
...
...
@@ -162,7 +165,7 @@
}
}
$send_status
=
$mailer
->
S
end
();
$send_status
=
$mailer
->
s
end
();
if
(
!
$send_status
){
@
error_log
(
'PHP Question2Answer email send error: '
.
$mailer
->
ErrorInfo
);
}
...
...
qa-include/pages/feedback.php
View file @
6680bc96
...
...
@@ -89,8 +89,10 @@
);
if
(
qa_send_email
(
array
(
'fromemail'
=>
qa_
email_validate
(
@
$inemail
)
?
$inemail
:
qa_
opt
(
'from_email'
),
'fromemail'
=>
qa_opt
(
'from_email'
),
'fromname'
=>
$inname
,
'replytoemail'
=>
qa_email_validate
(
@
$inemail
)
?
$inemail
:
null
,
'replytoname'
=>
$inname
,
'toemail'
=>
qa_opt
(
'feedback_email'
),
'toname'
=>
qa_opt
(
'site_title'
),
'subject'
=>
qa_lang_sub
(
'emails/feedback_subject'
,
qa_opt
(
'site_title'
)),
...
...
@@ -182,4 +184,4 @@
/*
Omit PHP closing tag to help avoid accidental output
*/
\ No newline at end of file
*/
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