Merge branch 'feature-email'
This commit is contained in:
commit
96bc300f77
|
@ -12,6 +12,7 @@ namespace PHPCI\Plugin;
|
||||||
use Exception;
|
use Exception;
|
||||||
use b8\View;
|
use b8\View;
|
||||||
use PHPCI\Builder;
|
use PHPCI\Builder;
|
||||||
|
use PHPCI\Helper\Lang;
|
||||||
use PHPCI\Model\Build;
|
use PHPCI\Model\Build;
|
||||||
use PHPCI\Helper\Email as EmailHelper;
|
use PHPCI\Helper\Email as EmailHelper;
|
||||||
use Psr\Log\LogLevel;
|
use Psr\Log\LogLevel;
|
||||||
|
@ -97,8 +98,8 @@ class Email implements Plugin
|
||||||
);
|
);
|
||||||
|
|
||||||
// This is a success if we've not failed to send anything.
|
// This is a success if we've not failed to send anything.
|
||||||
$this->phpci->log(sprintf("%d emails sent", (count($addresses) - $sendFailures)));
|
$this->phpci->log(Lang::get('n_emails_sent', (count($addresses) - $sendFailures)));
|
||||||
$this->phpci->log(sprintf("%d emails failed to send", $sendFailures));
|
$this->phpci->log(Lang::get('n_emails_failed', $sendFailures));
|
||||||
|
|
||||||
return ($sendFailures === 0);
|
return ($sendFailures === 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue