Add stats notifications settings

[MAILPOET-1571]
This commit is contained in:
Pavel Dohnal
2018-12-10 11:31:21 +01:00
parent cc8e0db927
commit 195efad742
3 changed files with 77 additions and 13 deletions

View File

@ -194,6 +194,15 @@ class Populator {
]);
}
$stats_notifications = Setting::getValue('stats_notifications');
if(empty($stats_notifications)) {
$sender = Setting::getValue('sender', []);
Setting::setValue('stats_notifications', [
'enabled' => true,
'address' => isset($sender['address'])? $sender['address'] : null,
]);
}
// reset mailer log
MailerLog::resetMailerLog();
}