Change Ordering of SASLMechanisms

Want bw. Needed to change the ordering for SASL Mechanism...
This commit is contained in:
Gerald Urbas 2022-05-29 20:19:06 +02:00 committed by GitHub
parent 135406ebfe
commit 2ea3f10cb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ class SmtpClient extends \MailSo\Net\NetClient
$sPassword = $aCredentials['Password'];
$type = '';
$aCredentials['SASLMechanisms'][] = 'LOGIN';
array_unshift($aCredentials['SASLMechanisms'],'LOGIN');
foreach ($aCredentials['SASLMechanisms'] as $sasl_type) {
if ($this->IsAuthSupported($sasl_type) && \SnappyMail\SASL::isSupported($sasl_type)) {
$type = $sasl_type;