* @ingroup JobQueue
*/
class EmaillingJob extends Job {
- function __construct( $title, $params ) {
+ function __construct( Title $title = null, array $params ) {
parent::__construct( 'sendMail', Title::newMainPage(), $params );
}
$this->params['from'],
$this->params['subj'],
$this->params['body'],
- $this->params['replyto']
+ [ 'replyTo' => $this->params['replyto'] ]
);
return $status->isOK();