mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 05:42:40 +01:00
Make it harder to misconfigure phpmailer.smtp-protocol
Summary: Until we implement an "enum" type for config, make this a bit harder to get wrong. A user entered "TLS", but the correct value is "tls". The documentation is consistent about this, but the behavior is sitll surprsing. Test Plan: eyeballed it Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D7778
This commit is contained in:
parent
00f192cebb
commit
537f2eabee
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ final class PhabricatorMailImplementationPHPMailerAdapter
|
||||||
|
|
||||||
$protocol = PhabricatorEnv::getEnvConfig('phpmailer.smtp-protocol');
|
$protocol = PhabricatorEnv::getEnvConfig('phpmailer.smtp-protocol');
|
||||||
if ($protocol) {
|
if ($protocol) {
|
||||||
|
$protocol = phutil_utf8_strtolower($protocol);
|
||||||
$this->mailer->SMTPSecure = $protocol;
|
$this->mailer->SMTPSecure = $protocol;
|
||||||
}
|
}
|
||||||
} else if ($mailer == 'sendmail') {
|
} else if ($mailer == 'sendmail') {
|
||||||
|
|
Loading…
Reference in a new issue