MDL-29192 - clarify email_to_user call
authorDan Poltawski <dan@moodle.com>
Tue, 7 Aug 2012 02:53:33 +0000 (10:53 +0800)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 14 Aug 2012 23:17:32 +0000 (01:17 +0200)
mod/forum/lib.php

index d052294..daf6f02 100644 (file)
@@ -1014,7 +1014,8 @@ function forum_cron() {
 
                 $attachment = $attachname='';
                 $usetrueaddress = true;
-                //directly email forum digests rather than sending them via messaging
+                // Directly email forum digests rather than sending them via messaging, use the
+                // site shortname as 'from name', the noreply address will be used by email_to_user.
                 $mailresult = email_to_user($userto, $site->shortname, $postsubject, $posttext, $posthtml, $attachment, $attachname, $usetrueaddress, $CFG->forum_replytouser);
 
                 if (!$mailresult) {