@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final 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}