I need to create two situations for automatic email triggering by MOODLE for students in the course.
Situation 1: How do I get Moodle to send an automatic email before the registration expires for the students.
Example: automatically leaving an e-mail with 5 days left before registration ends for everyone.
Situation 2: An automatic email when a student spends a number of days without accessing the platform.
Example: A student spends 10 days without accessing the platform, then the moodle sends an alert email, provided he is enrolled in a course.