Skip to content
Snippets Groups Projects
Commit 9c72aaba authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #13678 TIME 0:10 Change History in notif

parent 205bf469
No related branches found
No related tags found
No related merge requests found
...@@ -112,12 +112,13 @@ while ($state <> 'END') { ...@@ -112,12 +112,13 @@ while ($state <> 'END') {
$phpmailer->SMTPDebug = 1; $phpmailer->SMTPDebug = 1;
$phpmailer->Debugoutput = function ($str) { $phpmailer->Debugoutput = function ($str) {
if (strpos($str, 'SMTP ERROR') !== false) { if (strpos($str, 'SMTP ERROR') !== false) {
$user = \User\models\UserModel::getBylogin(['select' => ['id'], 'login' => 'superadmin']);
\History\controllers\HistoryController::add([ \History\controllers\HistoryController::add([
'tableName' => 'emails', 'tableName' => 'emails',
'recordId' => 'email', 'recordId' => 'email',
'eventType' => 'ERROR', 'eventType' => 'ERROR',
'eventId' => 'sendEmail', 'eventId' => 'sendEmail',
'userId' => 'superadmin', 'userId' => $user['id'],
'info' => $str 'info' => $str
]); ]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment