Hi!
I'm using Gradebook and Mentee block,
when Teacher add feedback and grade it is possible to send student email notification.
I need somehow send same email to the student's mentor
Maybe someone know how to change the code?
Thank you in advance
In reply to jen ol
Re: How to send same email notification to student and mentor, whend grades are saved
by jen ol -
I have find function in file \mod\assignment\lib.php that sending this notification to student
}
if (! email_to_user($user, $teacher, $postsubject, $posttext, $posthtml)) { echo "Error: assignment cron: Could not send out mail for id $submission->id to user $user->id ($user->email)\n"; }
How to write correctly variable $parent?
It should include email info
}
if (! email_to_user($user, $teacher, $postsubject, $posttext, $posthtml)) { echo "Error: assignment cron: Could not send out mail for id $submission->id to user $user->id ($user->email)\n"; }
How to write correctly variable $parent?
It should include email info
In reply to jen ol
Re: How to send same email notification to student and mentor, whend grades are saved
Take a look at lib/moodlelib.php where the email_to_user() and other functions are implemented.