Merge "Further expand Status unit tests"
[lhc/web/wiklou.git] / includes / job / jobs / EmaillingJob.php
index d359988..f24cebb 100644 (file)
@@ -33,14 +33,14 @@ class EmaillingJob extends Job {
        }
 
        function run() {
-               UserMailer::send(
+               $status = UserMailer::send(
                        $this->params['to'],
                        $this->params['from'],
                        $this->params['subj'],
                        $this->params['body'],
                        $this->params['replyto']
                );
-               return true;
-       }
 
+               return $status->isOK();
+       }
 }