This commit is contained in:
the-djmaze 2024-08-06 11:40:25 +02:00
parent 3a8af7de29
commit cc04a82bfe

View file

@ -835,7 +835,7 @@ trait Messages
} }
} else if ($oSmtpClient->IsConnected()) { } else if ($oSmtpClient->IsConnected()) {
if ($iMessageStreamSize && $oSmtpClient->maxSize() && $iMessageStreamSize * 1.33 > $oSmtpClient->maxSize()) { if ($iMessageStreamSize && $oSmtpClient->maxSize() && $iMessageStreamSize * 1.33 > $oSmtpClient->maxSize()) {
throw new ClientException(Notifications::ClientViewError, 'Message size '. ($iMessageStreamSize * 1.33) . ' bigger then max ' . $oSmtpClient->maxSize()); throw new ClientException(Notifications::ClientViewError, null, 'Message size '. ($iMessageStreamSize * 1.33) . ' bigger then max ' . $oSmtpClient->maxSize());
} }
if (!empty($sFrom)) { if (!empty($sFrom)) {