Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorMailSetupCheck.php
- This file was added.
| <?php | |||||
| final class PhabricatorMailSetupCheck extends PhabricatorSetupCheck { | |||||
| public function getDefaultGroup() { | |||||
| return self::GROUP_OTHER; | |||||
| } | |||||
| protected function executeChecks() { | |||||
| if (PhabricatorEnv::getEnvConfig('cluster.mailers')) { | |||||
| return; | |||||
| } | |||||
| $message = pht( | |||||
| 'Phabricator can not send email without a valid cluster.mailers '. | |||||
| 'configuration. See https://phurl.io/u/outboundMail for configuration '. | |||||
| 'details.'); | |||||
| $this->newIssue('cluster.mailers') | |||||
| ->setName(pht('No cluster.mailers Configured')) | |||||
| ->setMessage($message) | |||||
| ->addPhabricatorConfig('cluster.mailers'); | |||||
| } | |||||
| } | |||||