PHPMailer cannot read configuration value because of typo


#1

Observed Behavior:
After upgrading the master we do not get mails anymore.

Expected Behavior:
On changes in phabricator users should get email notification regarding to configuration.

Phabricator Version:
phabricator
9386e436fe35c7972116f2df26702a4b390c9985 (Fri, Feb 9)
arcanist
349109426c7f9f86bfd295517e61fdf34cdbcbdc (Mon, Feb 5)
phutil
f91ef416f11fa22f939f6c2211949669422983f0 (Thu, Feb 8)
diff
3.3 at /usr/bin/diff
git
1.8.3.1 at /usr/bin/git
hg
Not Available
pygmentize
2.1.3 at /usr/bin/pygmentize
svn
Not Available

Reproduction Steps:

  1. Log in to you server twice
  2. In one session open up the daeomon.log
    tail -f /var/tmp/phd/log/daemons.log
  3. In the second session send a testmail
    sudo su - phd
  4. change into phabricators directory regarding your installation path … mine is…
    /var/www/html/apps/phabricator
  5. create file for mail test
    echo "Phabricator mail test" > mailtest
  6. test mail by sending to a user in phabricator
    ./bin/mail send-test --to yourusernamehere - --subject Test < mailtest

You will see this error and you see there is a passsword key with 3 sss

[10-Feb-2018 22:01:03 Europe/Berlin] [2018-02-10 22:01:03] EXCEPTION: (PhutilProxyException) Error while executing Task ID 157737. {>} (Exception) No config value specified for key 'phpmailer.smtp-passsword'. at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:354]

It have to be fixed on line 41 in this file
src/applications/metamta/adapter/PhabricatorMailImplementationPHPMailerAdapter.php


#2

Thanks, https://secure.phabricator.com/D19058.