Commit ab2837be authored by Nigel McNie's avatar Nigel McNie
Browse files

Add a Reply-to header if a contact-us message comes from a non-user.

parent 5587a637
......@@ -394,6 +394,11 @@ class ActivityTypeContactus extends ActivityTypeAdmin {
if (!empty($this->userfrom)) {
$this->url = get_config('wwwroot') . 'user/view.php?id=' . $this->userfrom;
}
else {
$this->customheaders = array(
'Reply-to: ' . $this->fromname . ' <' . $this->fromemail . '>',
);
}
}
function get_subject($user) {
......
Supports Markdown
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