Fixes curl smtp send mail issues

This commit is contained in:
Simone Mainardi 2018-04-05 14:39:19 +02:00
parent 2bc61142fa
commit 3ed603498f
6 changed files with 53 additions and 31 deletions

View file

@ -2565,9 +2565,13 @@ end
--
local ALERT_NOTIFICATION_MODULES = {
"nagios", "email", "slack"
"nagios", "slack"
}
if ntop.sendMail then -- only if email support is available
ALERT_NOTIFICATION_MODULES[#ALERT_NOTIFICATION_MODULES + 1] = "email"
end
function getAlertNotificationModuleEnableKey(module_name, short)
local short_k = "alerts." .. module_name .. "_notifications_enabled"