mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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();
|
$oSettings->Ehlo = \MailSo\Smtp\SmtpClient::EhloHelper();
|
||||||
|
|
||||||
$oPlugins->RunHook('smtp.before-connect', array($this, $oSmtpClient, $oSettings));
|
$oPlugins->RunHook('smtp.before-connect', array($this, $oSmtpClient, $oSettings));
|
||||||
if (!$oSettings->usePhpMail) {
|
if ($oSettings->usePhpMail) {
|
||||||
$oSmtpClient->Connect($oSettings, $oSettings->Ehlo);
|
$bUsePhpMail = true;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
$oSmtpClient->Connect($oSettings, $oSettings->Ehlo);
|
||||||
$oPlugins->RunHook('smtp.after-connect', array($this, $oSmtpClient, $oSettings));
|
$oPlugins->RunHook('smtp.after-connect', array($this, $oSmtpClient, $oSettings));
|
||||||
/*
|
/*
|
||||||
if ($this->oDomain->OutAskCredentials() && !($this->sSmtpPassword && $this->sSmtpLogin)) {
|
if ($this->oDomain->OutAskCredentials() && !($this->sSmtpPassword && $this->sSmtpLogin)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue