Commit fc7a62dc by Phy

Change from / reply-to for feedback form

If the email address user inputed has forced SPF check, the email will not be received by major ESPs.
parent 49a1b466
......@@ -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
*/
Markdown is supported
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