35 public function run() {
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.
static newMainPage(MessageLocalizer $localizer=null)
Create a new Title for the Main Page.
static send( $to, $from, $subject, $body, $options=[])
This function will perform a direct (authenticated) login to a SMTP Server to use for mail relaying i...