Skip to content

Commit 8eedfff

Browse files
authored
Merge pull request #1652 from elguitarraverde/mejorar-legibilidad-de-mensajes-debug-del-mail
mejorar legibilidad de mensajes debug del mail
2 parents ab0a28c + 0731985 commit 8eedfff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Core/Lib/Email/NewMail.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ public function __construct()
9494
$this->fromName = $this->empresa->nombrecorto;
9595

9696
$this->mail = new PHPMailer();
97+
98+
$this->mail->Debugoutput = function ($str) {
99+
Tools::log()->warning($str);
100+
};
101+
97102
$this->mail->CharSet = PHPMailer::CHARSET_UTF8;
98103
$this->mail->Mailer = Tools::settings('email', 'mailer');
99104

0 commit comments

Comments
 (0)