Hey everyone,
I had the same problem as you all for several months. The final solution I came to was to edit the cron job (as is mentioned previously in this thread). Anyway, here are the details of how I got the cron job working. Hopefully this will be helpful to others:
Issue: Moodle doesn't send out e-mail notifications when people post to the forum.
Details:
- When a person is "subscribed" to a Moodle forum, they are supposed to receive e-mails automatically when other people post to that forum. This setting can be enabled/disabled by navigating to the forum as a teacher or admin, clicking "Show/edit" current subscribers, and turning editing on.
- However, sometimes the users will not receive e-mails even if they are subscribed and people post to the forum.
- (Note, this error may occur even though the registration and password confirmation e-mails ARE being sent out!)
Solution:
It may be that the "cron" job is not executing properly. You have to set it up to execute various times per hour.
This is especially important if you migrated or copied the moodle installation from another folder/website!:
- If you have shell access and server control, you can add a cron job by doing the following:
- # crontab -e
Edit the file that is opened by adding this line and changing the path.
*/5 * * * * /usr/bin/php '/var/www/website3/moodle/admin/cron.php' > /dev/null
Restart the cron daemon just for good measure
# cd /etc/init.d
# crond restart
- (Note: here are some other examples you can use in place of the line beginning with */5 * * * * above)
- If you are using a hosting service (such as Godaddy) and didn't install moodle through the application manager, you can set the cron settings in your hosting control panel:
- Log in and go to "My Account->Hosting->Manage Account->Content (dropdown box)->Cron Manager"
- From here you can create a cron job with the following command: