EmaillingJob.php 482 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Old job used for sending single notification emails;
  4. * kept for backwards-compatibility
  5. *
  6. * @ingroup JobQueue
  7. */
  8. class EmaillingJob extends Job {
  9. function __construct( $title, $params, $id = 0 ) {
  10. parent::__construct( 'sendMail', Title::newMainPage(), $params, $id );
  11. }
  12. function run() {
  13. userMailer(
  14. $this->params['to'],
  15. $this->params['from'],
  16. $this->params['subj'],
  17. $this->params['body'],
  18. $this->params['replyto']
  19. );
  20. return true;
  21. }
  22. }