mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 15:45:55 +08:00
Merge pull request #774 from e-foundation/fix-smtp-client-sasl
Fix issues with SMTP login mechanisms except "LOGIN"
This commit is contained in:
commit
439ad5596f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue