]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - includes/EmaillingJob.php
MediaWiki 1.14.0-scripts
[autoinstalls/mediawiki.git] / includes / EmaillingJob.php
1 <?php
2
3 /**
4  * Old job used for sending single notification emails;
5  * kept for backwards-compatibility
6  *
7  * @ingroup JobQueue
8  */
9 class EmaillingJob extends Job {
10
11         function __construct( $title, $params, $id = 0 ) {
12                 parent::__construct( 'sendMail', Title::newMainPage(), $params, $id );
13         }
14
15         function run() {
16                 userMailer(
17                         $this->params['to'],
18                         $this->params['from'],
19                         $this->params['subj'],
20                         $this->params['body'],
21                         $this->params['replyto']
22                 );
23                 return true;
24         }
25
26 }