Notification of course requests

Notification of course requests

Peter Wallace發表於
Number of replies: 2
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
評比平均分數: -
In reply to Peter Wallace

Re: Notification of course requests

Helen Foster發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片 Translators的相片
Hi Peter,

There is not yet any email notification of course requests, though this feature has been requested - see MDL-6160.
In reply to Helen Foster

Re: Notification of course requests

Luciano Rodriguez發表於
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. 微笑