00001 <?php 00002 00009 class EmaillingJob extends Job { 00010 00011 function __construct( $title, $params, $id = 0 ) { 00012 parent::__construct( 'sendMail', Title::newMainPage(), $params, $id ); 00013 } 00014 00015 function run() { 00016 userMailer( 00017 $this->params['to'], 00018 $this->params['from'], 00019 $this->params['subj'], 00020 $this->params['body'], 00021 $this->params['replyto'] 00022 ); 00023 return true; 00024 } 00025 00026 }