mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Adds formatted output of endpoint recipients
This commit is contained in:
parent
80b983ac39
commit
8724ebdd9f
6 changed files with 43 additions and 0 deletions
|
|
@ -39,6 +39,13 @@ local NUM_ATTEMPTS_KEY = "ntopng.alerts.modules_notifications_queue.email.num_at
|
|||
|
||||
-- ##############################################
|
||||
|
||||
-- @brief Returns the desided formatted output for recipient params
|
||||
function email.format_recipient_params(recipient_params)
|
||||
return string.format("%s (%s)", recipient_params.email_recipient, email.name)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
local function recipient2sendMessageSettings(recipient)
|
||||
local settings = {
|
||||
smtp_server = recipient.endpoint_conf.smtp_server,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue