Revert pull 423

This commit is contained in:
Akhil 2022-12-14 15:17:37 +05:30
parent 682af34d53
commit 06860a51e6
No known key found for this signature in database
GPG key ID: 7C737B3BD58C0A26

View file

@ -143,9 +143,7 @@ class SmtpClient extends \MailSo\Net\NetClient
$sPassword = $oSettings->Password;
$type = '';
// https://github.com/the-djmaze/snappymail/pull/423
// $oSettings->SASLMechanisms[] = 'LOGIN';
\array_unshift($oSettings->SASLMechanisms, 'LOGIN');
$oSettings->SASLMechanisms[] = 'LOGIN';
foreach ($oSettings->SASLMechanisms as $sasl_type) {
if ($this->IsAuthSupported($sasl_type) && \SnappyMail\SASL::isSupported($sasl_type)) {
$type = $sasl_type;