mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 10:09:20 +03:00
Added MailSo hooks
This commit is contained in:
parent
cfbda969d1
commit
e1d3010054
9 changed files with 79 additions and 31 deletions
|
|
@ -528,13 +528,8 @@ class SmtpClient extends \MailSo\Net\NetClient
|
|||
$this->IsSupported('STARTTLS'), $this->iSecurityType, $this->HasSupportedAuth()))
|
||||
{
|
||||
$this->sendRequestWithCheck('STARTTLS', 220);
|
||||
if (!@\stream_socket_enable_crypto($this->rConnect, true, STREAM_CRYPTO_METHOD_TLS_CLIENT))
|
||||
{
|
||||
$this->writeLogException(
|
||||
new \MailSo\Smtp\Exceptions\RuntimeException('Cannot enable STARTTLS'),
|
||||
\MailSo\Log\Enumerations\Type::WARNING, true);
|
||||
}
|
||||
|
||||
$this->EnableCrypto();
|
||||
|
||||
$this->ehloOrHelo($sEhloHost);
|
||||
}
|
||||
else if (\MailSo\Net\Enumerations\ConnectionSecurityType::STARTTLS === $this->iSecurityType)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue