Is Moodle supposed to email admin when a course request is submitted?
It is not happening on my server. If is should be notifying me, where are the settings to make it happen?
(I have run cron after the request was submitted.)
Peter
We added some code to email us.
edit the file /course/request_form.php and look for the piece of code where the form checks for errors. Before the return = true add the email code.
if (0 == count($errors)){
$message ='Course Fullname: ' . $data['fullname'] . ' ------> ';
$message .='Reason for Request: ' . $data['reason'];
mail('moodle@sandi.net','Moodle Course Request', $message);
return true;
Hope this helps.
edit the file /course/request_form.php and look for the piece of code where the form checks for errors. Before the return = true add the email code.
if (0 == count($errors)){
$message ='Course Fullname: ' . $data['fullname'] . ' ------> ';
$message .='Reason for Request: ' . $data['reason'];
mail('moodle@sandi.net','Moodle Course Request', $message);
return true;
Hope this helps.