37 parent::__construct(
'sendMail', Title::newMainPage(),
$params );
38 $this->emailer = $emailer;
41 public function run() {
42 $status = $this->emailer->send(
43 [ $this->params[
'to'] ],
44 $this->params[
'from'],
45 $this->params[
'subj'],
46 $this->params[
'body'],
48 [
'replyTo' => $this->params[
'replyto'] ]
51 return $status->isOK();
array $params
The job parameters.
Send an arbitrary single email.
__construct(?Title $title, array $params, IEmailer $emailer)
Describe and execute a background job.