mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03: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
1 changed files with 1 additions and 3 deletions
|
|
@ -143,9 +143,7 @@ class SmtpClient extends \MailSo\Net\NetClient
|
||||||
$sPassword = $oSettings->Password;
|
$sPassword = $oSettings->Password;
|
||||||
|
|
||||||
$type = '';
|
$type = '';
|
||||||
// https://github.com/the-djmaze/snappymail/pull/423
|
$oSettings->SASLMechanisms[] = 'LOGIN';
|
||||||
// $oSettings->SASLMechanisms[] = 'LOGIN';
|
|
||||||
\array_unshift($oSettings->SASLMechanisms, 'LOGIN');
|
|
||||||
foreach ($oSettings->SASLMechanisms as $sasl_type) {
|
foreach ($oSettings->SASLMechanisms as $sasl_type) {
|
||||||
if ($this->IsAuthSupported($sasl_type) && \SnappyMail\SASL::isSupported($sasl_type)) {
|
if ($this->IsAuthSupported($sasl_type) && \SnappyMail\SASL::isSupported($sasl_type)) {
|
||||||
$type = $sasl_type;
|
$type = $sasl_type;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue