Announcement abnormally sends duplicated email to students per 30 seconds for 20 minutes

Re: Announcement abnormally sends duplicated email to students per 30 seconds for 20 minutes

by Ariden Lei -
Number of replies: 1
I found that there is option - SMTP session limit at Outgoing mail configuration. We are using the default value is 1. Does it mean that Moodle only send one notification email each time? 5500 students means it need to send 5500 times?
If I change it to a higher value say, 100, would it help to solve this problem?

My current php.ini config:
memory_limit 256M

and also,
no extra PHP memory is set.

Would it cause problem for sending 5500 notification email parsed with 400kB images?

Please advise.
In reply to Ariden Lei

Re: Announcement abnormally sends duplicated email to students per 30 seconds for 20 minutes

by Ariden Lei -
Hi Francis,

The announcement sends duplicated email is due to the fact that the cron task fails to complete the Ad hoc task which is for sending email. Therefore, it repeats to do so. You may print the cron log to standard output for checking the error message.

To solve the problem, you may try the below setting:
1. Increase "Extra PHP memory limit" to 4096M
2. Increase "Ad hoc task concurrency limit" to 20
Average of ratings: Useful (1)