I want to send students welcome emails when they first login my course.

I want to send students welcome emails when they first login my course.

by 慧慧 杨 -
Number of replies: 2

My Moodle is 1.8.3 version.
This is my "enrol.class.php"content.What should i do with this file?Or other solutions?

class enrolment_factory {
    function factory($enrol = '') {
        global $CFG;
        if (!$enrol) {
            $enrol = $CFG->enrol;
        }
        if (file_exists("$CFG->dirroot/enrol/$enrol/enrol.php")) {
            require_once("$CFG->dirroot/enrol/$enrol/enrol.php");
            $class = "enrolment_plugin_$enrol";
            return new $class;
        } else {
            trigger_error("$CFG->dirroot/enrol/$enrol/enrol.php does not exist");
            notify("Enrolment file $enrol/enrol.php does not exist");
        }
    }
}

Need your help.Thank you .

Huihui Yang

Average of ratings: -
In reply to 慧慧 杨

Re: I want to send students welcome emails when they first login my course.

by Andrea Bicciolo -
Hi,
if you let your student to self enroll to your course, Moodle by default will send a welcome email to students.
Average of ratings: Useful (1)
In reply to Andrea Bicciolo

回复: Re: I want to send students welcome emails when they first login my course.

by 慧慧 杨 -

But it can't work in my site.

It still can't send welcome email to students.

Students can receive new posts  in forum by email. 

It's strange.困乏

Thank you all the same.