mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-11 08:06:13 +01:00
25 lines
664 B
PHP
25 lines
664 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorMailSetupCheck extends PhabricatorSetupCheck {
|
||
|
|
||
|
public function getDefaultGroup() {
|
||
|
return self::GROUP_OTHER;
|
||
|
}
|
||
|
|
||
|
protected function executeChecks() {
|
||
|
if (PhabricatorEnv::getEnvConfig('cluster.mailers')) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
$message = pht(
|
||
|
'You haven\'t configured mailers yet, so Phabricator won\'t be able '.
|
||
|
'to send outbound mail or receive inbound mail. See the '.
|
||
|
'configuration setting cluster.mailers for details.');
|
||
|
|
||
|
$this->newIssue('cluster.mailers')
|
||
|
->setName(pht('Mailers Not Configured'))
|
||
|
->setMessage($message)
|
||
|
->addPhabricatorConfig('cluster.mailers');
|
||
|
}
|
||
|
}
|