diff --git a/server/notification-providers/smtp.js b/server/notification-providers/smtp.js index 7def06940..dd1cd10a7 100644 --- a/server/notification-providers/smtp.js +++ b/server/notification-providers/smtp.js @@ -46,12 +46,13 @@ class SMTP extends NotificationProvider { } if (heartbeatJSON !== null) { - serviceStatus = heartbeatJSON["status"] == DOWN ? "🔴 Down":"✅ Up"; + serviceStatus = heartbeatJSON["status"] == DOWN ? "🔴 Down" : "✅ Up"; } + // Break replace to one by line for better readability - customsubject = customsubject.replace(replaceStatus,serviceStatus); - customsubject = customsubject.replace(replaceName,monitorName); - customsubject = customsubject.replace(replaceHostname,monitorHostname); + customsubject = customsubject.replace(replaceStatus, serviceStatus); + customsubject = customsubject.replace(replaceName, monitorName); + customsubject = customsubject.replace(replaceHostname, monitorHostname); subject = customsubject }