Merge branch 'MDL-53315-imap-namespace' of https://github.com/brendanheywood/moodle
[moodle.git] / admin / tool / messageinbound / classes / manager.php
index 3968f63..25762a1 100644 (file)
@@ -920,7 +920,7 @@ class manager {
         $userfrom->customheaders[] = 'In-Reply-To: ' . $messageid;
 
         // The message will be sent from the intended user.
-        $eventdata->userfrom            = \core_user::get_noreply_user();
+        $eventdata->userfrom            = \core_user::get_support_user();
         $eventdata->userto              = $USER;
         $eventdata->subject             = $this->get_reply_subject($this->currentmessagedata->envelope->subject);
         $eventdata->fullmessage         = get_string('invalidrecipientdescription', 'tool_messageinbound', $this->currentmessagedata);