mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-03-12 15:55:13 +08:00
Update Account.php
Bugfix send message using PHP mail() failed
This commit is contained in:
parent
352ef98bc6
commit
c6500dfe14
1 changed files with 4 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue