Permalink
Browse files

MDL-29192 - clarify email_to_user call

  • Loading branch information...
1 parent 6c20303 commit 02d8fb146dabbf284285b9771034cc8b8ab0cae2 @danpoltawski danpoltawski committed with stronk7 Aug 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/forum/lib.php
View
@@ -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) {

0 comments on commit 02d8fb1

Please sign in to comment.