Changed: use hash_hmac() instead of MailSo\Base\Utils::Hmac()

Renamed: PrepearFetchSequence() to PrepareFetchSequence()
Removed: StripSlashesValue() because PHP7 has no magic_quotes_gpc
This commit is contained in:
djmaze 2020-03-18 01:26:40 +01:00
parent 23e9964997
commit 9bb44e7f98
7 changed files with 19 additions and 128 deletions

View file

@ -188,7 +188,7 @@ class SmtpClient extends \MailSo\Net\NetClient
try
{
$this->sendRequestWithCheck(\base64_encode($sLogin.' '.\MailSo\Base\Utils::Hmac($sTicket, $sPassword)), 235, '', true);
$this->sendRequestWithCheck(\base64_encode($sLogin.' '.\hash_hmac('md5', $sTicket, $sPassword)), 235, '', true);
}
catch (\MailSo\Smtp\Exceptions\NegativeResponseException $oException)
{