ntopng/scripts/plugins/notification_endpoints/endpoints/email.lua

29 lines
747 B
Lua

--
-- (C) 2020 - ntop.org
--
--
-- This module implements defines the email endpoint
--
local endpoint = {}
-- #################################################################
endpoint = {
key = "email",
conf_params = {
{ param_name = "smtp_server_name", param_type = "string" },
{ param_name = "sender", param_type = "email" },
{ param_name = "username", param_type = "string", optional = true },
{ param_name = "password", param_type = "password", optional = true },
},
recipient_params = {
{ param_name = "to", param_type = "email" },
{ param_name = "cc", param_type = "email", optional = true },
}
}
-- #################################################################
return endpoint