We, too are looking at options to turn off automatic emailing of grades, etc. Have seen some postings in various forums but none seem to successfully address the need. The automatic notifications are not contained in digests, if that's what the profile specificies -- you still get them each time the instructor posts grades. If they do it once a week, you get a whole lot of them.
Needed to correct this quickly so I went in and commented out mod/assignment/lib.php assignment_cron function the lines:
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";
}
Later on I may make a permanent mod that allows for the database change required to enable instructor-selection by course.
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";
}
Later on I may make a permanent mod that allows for the database change required to enable instructor-selection by course.
回复Bob Puffer
本讨论区帖子已移除
本讨论区帖子的内容已移除,无法再访问。
Nothing done in the DB -- the code you see completely disables notification emails from being processed by the cron. In order to accomplish your objective you'd need to get a list of the teachers for the course and determine, by authority which one should originate the email and place that in the teacher field of the message function.
回复Bob Puffer
本讨论区帖子已移除
本讨论区帖子的内容已移除,无法再访问。