original_string: protected function send_mail() {
          // Headers to help prevent auto-responders.
          $userfrom = \core_user::get_noreply_user();
          $userfrom->customheaders = array(
              "Precedence: Bulk",
              'X-Auto-Response-Suppress: All',
              'Auto-Submitted: auto-generated',
          );
  
          $eventdata = new \core\message\message();
          $eventdata->courseid = SITEID;
          $eventdata->component = 'mod_forum';
          $eventdata->name = 'digests';
          $eventdata->userfrom = $userfrom;
          $eventdata->userto = $this->recipient;
          $eventdata->subject = $this->postsubject;
          $eventdata->fullmessage = $this->notificationtext;
          $eventdata->fullmessageformat = FORMAT_PLAIN;
          $eventdata->fullmessagehtml = $this->notificationhtml;
          $eventdata->notification = 1;
          $eventdata->smallmessage = get_string('smallmessagedigest', 'forum', $this->sentcount);
  
          return message_send($eventdata);
      }
code: protected function send_mail() {
          // Headers to help prevent auto-responders.
          $userfrom = \core_user::get_noreply_user();
          $userfrom->customheaders = array(
              "Precedence: Bulk",
              'X-Auto-Response-Suppress: All',
              'Auto-Submitted: auto-generated',
          );
  
          $eventdata = new \core\message\message();
          $eventdata->courseid = SITEID;
          $eventdata->component = 'mod_forum';
          $eventdata->name = 'digests';
          $eventdata->userfrom = $userfrom;
          $eventdata->userto = $this->recipient;
          $eventdata->subject = $this->postsubject;
          $eventdata->fullmessage = $this->notificationtext;
          $eventdata->fullmessageformat = FORMAT_PLAIN;
          $eventdata->fullmessagehtml = $this->notificationhtml;
          $eventdata->notification = 1;
          $eventdata->smallmessage = get_string('smallmessagedigest', 'forum', $this->sentcount);
  
          return message_send($eventdata);
      }
code_tokens: protected function send_mail ( ) { // Headers to help prevent auto-responders. $ userfrom = \ core_user :: get_noreply_user ( ) ; $ userfrom -> customheaders = array ( "Precedence: Bulk" , 'X-Auto-Response-Suppress: All' , 'Auto-Submitted: auto-generated' , ) ; $ eventdata = new \ core \ message \ message ( ) ; $ eventdata -> courseid = SITEID ; $ eventdata -> component = 'mod_forum' ; $ eventdata -> name = 'digests' ; $ eventdata -> userfrom = $ userfrom ; $ eventdata -> userto = $ this -> recipient ; $ eventdata -> subject = $ this -> postsubject ; $ eventdata -> fullmessage = $ this -> notificationtext ; $ eventdata -> fullmessageformat = FORMAT_PLAIN ; $ eventdata -> fullmessagehtml = $ this -> notificationhtml ; $ eventdata -> notification = 1 ; $ eventdata -> smallmessage = get_string ( 'smallmessagedigest' , 'forum' , $ this -> sentcount ) ; return message_send ( $ eventdata ) ; }
docstring: Send the composed message to the user.
docstring_tokens: Send the composed message to the user .