I am using Moodle 1.4.3 on a Linux server using basic mail() but my ISP has a limit of 5 emails per 10 seconds and 100 email per hour. When I post to forums or discussions with more than 5 subscribers and the forum_cron lights off in /mod/forum/lib.php, 5 emails go through and the rest return error with "ERROR: Could not instantiate mail function" and its ugly twin "ERROR: mod/forum/cron.php".
Has anyone written a email queuing/chunking system at either the forum_cron() level working with mailed and unmailed posts (unfortunately don't know how many e-mails a single post will generate), the email_to_user() level used by many modules, the @mail() level, or some other place?
Throttling 5 emails each time cron lights off every 5 minutes would work fine for me. The digest code seems to have the same issues. Moodle 1.5 seems to have the same code. Other people must have confronted this one before.
I appreciate any guidance.