]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - includes/EmaillingJob.php
MediaWiki 1.11.0-scripts
[autoinstallsdev/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 class EmaillingJob extends Job {
8
9         function __construct( $title, $params, $id = 0 ) {
10                 parent::__construct( 'sendMail', Title::newMainPage(), $params, $id );
11         }
12
13         function run() {
14                 userMailer(
15                         $this->params['to'],
16                         $this->params['from'],
17                         $this->params['subj'],
18                         $this->params['body'],
19                         $this->params['replyto']
20                 );
21                 return true;
22         }
23         
24 }
25