Hello Moodle community,
We are two French interns currently developping new functionnalities for a website based on Moodle (http://moodle.cifad.ca/)
On this website, users have the possibility to learn by themselves by having access to various courses. When they are ready, they can take a test which will determine wether they passed the course or not.
----------
When students are unenroled from a course, we would like an e-mail to be automatically sent to the student, and his teacher.
The problem is that we didn't manage to find the teacher associated to a course. Therefore, my question would be : Is there a way to get the email of a teacher from a given course ?
If you need more details, i'll be happy to give you the SQL Query we've already built and the tables we though we could find useful info in. We're kinda new to all this, so we're a little lost in the Moodle database
Big Thanks for your help, and sorry if I'm asking a (stupid) question, which might also have already been asked...