MediaWiki  REL1_21
EmaillingJob.php
Go to the documentation of this file.
00001 <?php
00030 class EmaillingJob extends Job {
00031         function __construct( $title, $params, $id = 0 ) {
00032                 parent::__construct( 'sendMail', Title::newMainPage(), $params, $id );
00033         }
00034 
00035         function run() {
00036                 $status = UserMailer::send(
00037                         $this->params['to'],
00038                         $this->params['from'],
00039                         $this->params['subj'],
00040                         $this->params['body'],
00041                         $this->params['replyto']
00042                 );
00043 
00044                 return $status->isOK();
00045         }
00046 
00047 }