mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Improve email subject for traffic and vs reports (#7969)
This commit is contained in:
parent
6f309a4a0f
commit
f903a44771
3 changed files with 39 additions and 7 deletions
|
|
@ -110,7 +110,7 @@ function email.sendEmail(subject, message_body, settings)
|
|||
if not isEmptyString(subject) then
|
||||
subject = subject .. " - "
|
||||
end
|
||||
subject = subject .. product .. " [" .. info.instance_name .. " (" .. info.ip .. ")]"
|
||||
subject = subject .. product .. " @ " .. info.instance_name .. " (" .. info.ip .. ")"
|
||||
|
||||
if not string.find(smtp_server, "://") then
|
||||
smtp_server = "smtp://" .. smtp_server
|
||||
|
|
@ -191,10 +191,7 @@ function email.dequeueRecipientAlerts(recipient, budget)
|
|||
-- Prepare email
|
||||
|
||||
-- Subject
|
||||
local subject = ""
|
||||
if #notifications > 1 then
|
||||
subject = "(" .. i18n("alert_messages.x_alerts", {num=#notifications}) .. ")"
|
||||
end
|
||||
local subject = format_utils.formatSubject(notifications)
|
||||
|
||||
-- Body
|
||||
local messages = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue