Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/config/check/PhabricatorMailSetupCheck.php
12256 views
1
<?php
2
3
final class PhabricatorMailSetupCheck extends PhabricatorSetupCheck {
4
5
public function getDefaultGroup() {
6
return self::GROUP_OTHER;
7
}
8
9
protected function executeChecks() {
10
if (PhabricatorEnv::getEnvConfig('cluster.mailers')) {
11
return;
12
}
13
14
$message = pht(
15
'You haven\'t configured mailers yet, so this server won\'t be able '.
16
'to send outbound mail or receive inbound mail. See the '.
17
'configuration setting "cluster.mailers" for details.');
18
19
$this->newIssue('cluster.mailers')
20
->setName(pht('Mailers Not Configured'))
21
->setMessage($message)
22
->addPhabricatorConfig('cluster.mailers');
23
}
24
}
25
26