Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / config / check / PhabricatorMailSetupCheck.php
blobc89e0036a25a66adae3ff6fa988eade417419991
1 <?php
3 final class PhabricatorMailSetupCheck extends PhabricatorSetupCheck {
5 public function getDefaultGroup() {
6 return self::GROUP_OTHER;
9 protected function executeChecks() {
10 if (PhabricatorEnv::getEnvConfig('cluster.mailers')) {
11 return;
14 $message = pht(
15 'You haven\'t configured mailers yet, so Phabricator won\'t be able '.
16 'to send outbound mail or receive inbound mail. See the '.
17 'configuration setting cluster.mailers for details.');
19 $this->newIssue('cluster.mailers')
20 ->setName(pht('Mailers Not Configured'))
21 ->setMessage($message)
22 ->addPhabricatorConfig('cluster.mailers');