-

Note: You are currently viewing documentation for Moodle 3.10. Up-to-date documentation for the latest stable version of Moodle may be available here: Quiz submission email notification.

Quiz submission email notification: Difference between revisions

From MoodleDocs
(edit, still blushing)
mNo edit summary
Line 2: Line 2:
{{Update}}
{{Update}}
It is possible for an email to be sent out to confirm that the student submitted the quiz. There are two types of notification: a confirmation to the student that their attempt has finished successfully, and a notification to the teacher(s) that someone has submitted an attempt. Emails are never sent for preview attempts.
It is possible for an email to be sent out to confirm that the student submitted the quiz. There are two types of notification: a confirmation to the student that their attempt has finished successfully, and a notification to the teacher(s) that someone has submitted an attempt. Emails are never sent for preview attempts.
:'''The default Moodle setting is forEmail functions in  Moodle Quiz are turned off for both students and teachers.'''  
:'''The default Moodle setting is for email functions in  Moodle Quiz are turned off for both students and teachers.'''  





Revision as of 12:49, 7 September 2011

This page requires updating. Please do so and remove this template when finished.


It is possible for an email to be sent out to confirm that the student submitted the quiz. There are two types of notification: a confirmation to the student that their attempt has finished successfully, and a notification to the teacher(s) that someone has submitted an attempt. Emails are never sent for preview attempts.

The default Moodle setting is for email functions in Moodle Quiz are turned off for both students and teachers.


Allow notification emails to teachers

Settings > Quiz administration > Permissions

To turn on the email process for a teacher in a specific quiz, go to the permissions screen, and in the Capability column under Activity: Quiz click on the + e procedure is similar to the above. On the Override permission tab in Quiz settings, change the capability "Get email notification when an attempt is submitted" (mod/quiz:emailnotifysubmission) to "Allow" for the teacher.

Since permissions are contextual, this permission can be set on the site or course level by the site administrator..

Allow confirmation emails to students

Settings > Quiz administration > Permissions 

The above process is similar for a student. Change the permission in the Activity:Quiz capability that says "Get a confirmations message when submitting" (mod/quiz:emailconfirmsubmission) to allow this for a student.

Notes

Note that if the quiz is set to separate groups, then teachers will only get a notification if either
  • the student is in the same group as the teacher, or
  • the teacher has moodle/site:accessallgroups.

How to configure the text of the emails

The subject and body of the emails are defined in the quiz.php language file. The strings are 'emailconfirmsubject', 'emailconfirmbody', 'emailnotifysubject' and 'emailnotifybody'. The $a string passed in when these language strings are loaded contains all the following information:

$a->coursename
The name of the course
$a->courseshortname
The shortname of the course
$a->quizname
The name of the quiz
$a->quizreporturl
The URL of the results overview for this quiz (.../mod/quiz/report.php?q=quizid)
$a->quizreportlink
The URL of the results overview URL and quiz name as a HTML link
$a->quizreviewurl
The URL of the review page for this attempt (.../mod/quiz/review.php?attempt=attemptid)
$a->quizreviewlink
The attempt review URL and quiz name as a HTML link
$a->quizurl
The URL of the main page of the quiz (.../mod/quiz/view.php?q=quizid)
$a->quizlink
The URL of the quiz and the quiz name as a HTML link
$a->attemptsubmissiontime
The time the attempt was submitted, formatted using userdate().
$a->timetaken
How long the quiz attempt lasted.
$a->studentname
The name of the person who submitted the quiz.
$a->studentidnumber
The idnumber of the person who submitted the quiz.
$a->studentusername
The username of the person who submitted the quiz.
$a->username
The name of the user the email is being sent to.
$a->useridnumber
The idnumber of the user the email is being sent to.
$a->userusername
The username of the user the email is being sent to.