Hi Mark,
When you say that post.php is sending hundreds of e-mails, is this unexpected - i.e. are the e-mails being incorrectly sent?
If not, then I'd seriously consider finding a new provider. Moodle is capable of sending huge volumes of e-mail with legitimate reason, and a correctly configured
server should have absolutely no issue with this.
You don't say what version of Moodle you're using, but on recent version (2.1 and 2.2 IIRC) If you'd like to change the behaviour of forum e-mails then you can do so without code modification:
Under Settings, choose Site administration -> plugins -> Message outputs -> Default message outputs
You should be able to change the default types of notifications sent to all users for various
activities. For example, you can 'prevent' e-mail notifications being sent out for forum posts, or set it so that by default users don't receive e-mail but can turn it on if they decide.
Personally, I'd find a new provider, or a moodle
hosting provider who knows how to
host moodle properly!
Andrew
LUNS Limited