-
Improvement
-
Resolution: Fixed
-
Minor
-
4.2.8, 4.1.11, 4.3.5, 4.4, 4.5
-
MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE
-
MOODLE_405_STABLE
-
MDL-81629-main -
Suggestion:
Mails send to the site support with the contactsitesupport form (user/contactsitesupport.php) should set the the fields for replyto and replytoname in the email header to the contact data provided by the user in the form.
Reasoning:
Then the site support recieves a mail from an user in most cases the support will want to anwser directly to the user who reported an issue or inquired something through the form. However directly anwsering the email recieved wont work as the mail will be sent from the noreply address of the moodle server. Changing the recipient of the anwser adds avoidable workload on the support staff as the correct recipient of the anwser is already known (in nearly all cases) and can thus be set in advance in the mail header.
Suggested code change:
As the form already requires the user to enter an email adress and a name this requires minimal changes to the code in the user/contactsitesupport.php file.
Just line 60 needs to be changed from:
if (!email_to_user(core_user::get_support_user(), $from, $subject, $message)) { |
to:
if (!email_to_user(core_user::get_support_user(), $from, $subject, $message, '', '', '', true, $data->email, $data->name)) { |
it even fits in the 132 character limit.