@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | $this->_mailer->isSMTP(); |
143 | 143 | $this->_mailer->SMTPSecure = $this->smtpSecure; |
144 | 144 | $this->_mailer->Host = (string) $this->host; |
145 | - $this->_mailer->SMTPAuth= $this->smtpAuth; |
|
145 | + $this->_mailer->SMTPAuth = $this->smtpAuth; |
|
146 | 146 | $this->_mailer->Username = $this->username; |
147 | 147 | $this->_mailer->Password = $this->password; |
148 | 148 | $this->_mailer->Port = $this->port; |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | return true; |
503 | 503 | } else { |
504 | 504 | $data = [$this->host, $this->port, $this->smtpSecure, $this->username]; |
505 | - throw new Exception('Authentication failed ('.implode(',', $data).'): '.$smtp->getLastReply() . PHP_EOL . print_r($smtp->getError(), true)); |
|
505 | + throw new Exception('Authentication failed ('.implode(',', $data).'): '.$smtp->getLastReply().PHP_EOL.print_r($smtp->getError(), true)); |
|
506 | 506 | } |
507 | 507 | } else { |
508 | 508 | throw new Exception('HELO failed: '.$smtp->getLastReply()); |