diff --git a/src/SMTP.php b/src/SMTP.php index 7c8520a5..1c973a21 100644 --- a/src/SMTP.php +++ b/src/SMTP.php @@ -280,6 +280,8 @@ class SMTP } //Is this a PSR-3 logger? if ($this->Debugoutput instanceof \Psr\Log\LoggerInterface) { + //Remove ending line breaks potentialy added by calls to SMTP::client_send() + $str = rtrim($str, "\n\r"); $this->Debugoutput->debug($str); return;