--- lib.php 2012-09-27 19:23:38.000000000 +0200 +++ lib.php_imb 2012-09-27 19:23:21.000000000 +0200 @@ -542,6 +542,12 @@ //if we want to check that userto and userfrom are not the same person this is probably the spot to do it + //Patch for MDL-29534. If forum_replytouser param in forum module is unchecked send mail using the noreplyaddress + //by: marcoblancas 27/09/2012 + //tested on: 2.2.4 + if (!$CFG->forum_replytouser) + $userfrom->email=$CFG->noreplyaddress; + // setup global $COURSE properly - needed for roles and languages cron_setup_user($userto, $course);