diff --git a/src/applications/metamta/adapter/PhabricatorMailSMTPAdapter.php b/src/applications/metamta/adapter/PhabricatorMailSMTPAdapter.php --- a/src/applications/metamta/adapter/PhabricatorMailSMTPAdapter.php +++ b/src/applications/metamta/adapter/PhabricatorMailSMTPAdapter.php @@ -62,7 +62,7 @@ $smtp->Host = $this->getOption('host'); $smtp->Port = $this->getOption('port'); $user = $this->getOption('user'); - if (strlen($user)) { + if (phutil_nonempty_string($user)) { $smtp->SMTPAuth = true; $smtp->Username = $user; $smtp->Password = $this->getOption('password');