code: public function email($toAddr, $subject, $body)
      {
          $addHeadersStr = '';
          $fromAddr = $this->debug->getCfg('emailFrom');
          if ($fromAddr) {
              $addHeadersStr .= 'From: '.$fromAddr;
          }
          \call_user_func($this->debug->getCfg('emailFunc'), $toAddr, $subject, $body, $addHeadersStr);
      }
docs: Send an email
  
  @param string $toAddr  to
  @param string $subject subject
  @param string $body    body
  
  @return void