MediaWiki  1.23.6
EmaillingJob.php
Go to the documentation of this file.
1 <?php
30 class EmaillingJob extends Job {
31  function __construct( $title, $params ) {
32  parent::__construct( 'sendMail', Title::newMainPage(), $params );
33  }
34 
35  function run() {
36  $status = UserMailer::send(
37  $this->params['to'],
38  $this->params['from'],
39  $this->params['subj'],
40  $this->params['body'],
41  $this->params['replyto']
42  );
43 
44  return $status->isOK();
45  }
46 }
UserMailer\send
static send( $to, $from, $subject, $body, $replyto=null, $contentType='text/plain;charset=UTF-8')
This function will perform a direct (authenticated) login to a SMTP Server to use for mail relaying i...
Definition: UserMailer.php:163
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
Title\newMainPage
static newMainPage()
Create a new Title for the Main Page.
Definition: Title.php:441
Job\$title
Title $title
Definition: Job.php:38
Job
Class to both describe a background job and handle jobs.
Definition: Job.php:31
EmaillingJob\run
run()
Run the job.
Definition: EmaillingJob.php:35
Job\$params
array bool $params
Array of job parameters or false if none *.
Definition: Job.php:34
EmaillingJob\__construct
__construct( $title, $params)
Definition: EmaillingJob.php:31
EmaillingJob
Old job used for sending single notification emails; kept for backwards-compatibility.
Definition: EmaillingJob.php:30