Change email subject for alerts (#7969)

This commit is contained in:
Alfredo Cardigliano 2023-11-02 15:33:16 +01:00
parent 1b224d53ee
commit 3ece52646f

View file

@ -107,7 +107,7 @@ 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
subject = product .. " [" .. info.instance_name .. " (" .. info.ip .. ")] " .. subject
if not string.find(smtp_server, "://") then
smtp_server = "smtp://" .. smtp_server