mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Move email subject before ntopng instance name
This commit is contained in:
parent
3ece52646f
commit
6f309a4a0f
1 changed files with 4 additions and 1 deletions
|
|
@ -107,7 +107,10 @@ function email.sendEmail(subject, message_body, settings)
|
|||
local product = ntop.getInfo(false).product
|
||||
local info = ntop.getHostInformation()
|
||||
|
||||
subject = product .. " [" .. info.instance_name .. " (" .. info.ip .. ")] " .. subject
|
||||
if not isEmptyString(subject) then
|
||||
subject = subject .. " - "
|
||||
end
|
||||
subject = subject .. product .. " [" .. info.instance_name .. " (" .. info.ip .. ")]"
|
||||
|
||||
if not string.find(smtp_server, "://") then
|
||||
smtp_server = "smtp://" .. smtp_server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue