diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php index 92b767e57..3004a450c 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Model/Account.php @@ -244,9 +244,11 @@ abstract class Account implements \JsonSerializable $oSettings->Ehlo = \MailSo\Smtp\SmtpClient::EhloHelper(); $oPlugins->RunHook('smtp.before-connect', array($this, $oSmtpClient, $oSettings)); - if (!$oSettings->usePhpMail) { - $oSmtpClient->Connect($oSettings, $oSettings->Ehlo); + if ($oSettings->usePhpMail) { + $bUsePhpMail = true; + return true; } + $oSmtpClient->Connect($oSettings, $oSettings->Ehlo); $oPlugins->RunHook('smtp.after-connect', array($this, $oSmtpClient, $oSettings)); /* if ($this->oDomain->OutAskCredentials() && !($this->sSmtpPassword && $this->sSmtpLogin)) {