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