Hello,
We use Moodle 2.2 and one of our module leads has just notified me that he does not receive any email notifications when students submit new assignments.
I checked that myself and it is true.
I thought that Moodle assignment may use lib/phpmailer code to send emails and checked that our SMTP mailserver is working fine.
However, after looking into the assignment activity in more detail, I have noticed that, when I run admin/cron.php, there is a call to the function function assignment_cron () {
that '* Finds all assignment notifications that have yet to be mailed out, and mails them'
I understand that this function does not send any email notifications when they are older than a day:
/// Notices older than 1 day will not be mailed. This is to avoid the problem where
/// cron has not been running for a long time, and then suddenly people are flooded
/// with mail from the past few weeks or months
$timenow = time();
$endtime = $timenow - $CFG->maxeditingtime;
$starttime = $endtime - 24 * 3600; /// One day earlier
The server has the right date and time and I tried different emails accounts to receive my submissions (University, gmail, etc), to make sure that the problem was not caused by any change of settings in the University mailserver, which is hosted in Outlook.com.
This is an extremely weird problem and I wonder if somebody else may have experience it.
Regards,
Mari Cruz