I have searched a lot about this subject in the forum but didn't find any way to add for example students grade or fail/pass situation in notification email.
I use moodle 3.9.
In this link https://docs.moodle.org/2x/pl/Quiz_submission_email_notification , I see that I can add for example time taken. But I want to show the teacher that if someone has fail or pass the quiz. I know teacher can click on the quiz link to see the result but this is not what I want.
I tried to use grade2: {$a->grade} out of {$a->maxgrade} ({$a->percent}%) as string in my email. But this is not work.
If the pass or fail situation is sent in a separate email is also OK.
Any help?