32 parent::__construct(
'sendMail', Title::newMainPage(),
$params );
35 public function run() {
36 $status = UserMailer::send(
38 $this->params[
'from'],
39 $this->params[
'subj'],
40 $this->params[
'body'],
41 [
'replyTo' => $this->params[
'replyto'] ]
44 return $status->isOK();
Old job used for sending single notification emails; kept for backwards-compatibility.
__construct(?Title $title, array $params)
Class to both describe a background job and handle jobs.
array $params
Array of job parameters.
Represents a title within MediaWiki.