mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-41849 Quiz: Quiz send mail from noreply user
Mails should be send by noreply user and not admin user
This commit is contained in:
parent
5386f0bbfe
commit
5540b2caf3
@ -1513,7 +1513,7 @@ function quiz_send_confirmation($recipient, $a) {
|
||||
$eventdata->name = 'confirmation';
|
||||
$eventdata->notification = 1;
|
||||
|
||||
$eventdata->userfrom = get_admin();
|
||||
$eventdata->userfrom = core_user::get_noreply_user();
|
||||
$eventdata->userto = $recipient;
|
||||
$eventdata->subject = get_string('emailconfirmsubject', 'quiz', $a);
|
||||
$eventdata->fullmessage = get_string('emailconfirmbody', 'quiz', $a);
|
||||
@ -1717,7 +1717,7 @@ function quiz_send_overdue_message($course, $quiz, $attempt, $context, $cm) {
|
||||
$eventdata->name = 'attempt_overdue';
|
||||
$eventdata->notification = 1;
|
||||
|
||||
$eventdata->userfrom = get_admin();
|
||||
$eventdata->userfrom = core_user::get_noreply_user();
|
||||
$eventdata->userto = $submitter;
|
||||
$eventdata->subject = get_string('emailoverduesubject', 'quiz', $a);
|
||||
$eventdata->fullmessage = get_string('emailoverduebody', 'quiz', $a);
|
||||
|
Loading…
x
Reference in New Issue
Block a user