diff --git a/server/controllers/monitorController.js b/server/controllers/monitorController.js index c917d1269..5d6a4665e 100755 --- a/server/controllers/monitorController.js +++ b/server/controllers/monitorController.js @@ -653,7 +653,7 @@ class MonitorController { const { to } = req.body; if (!to || typeof to !== "string") { - return res.error({ msg: "A valid recipient email address is required." }); + return res.error({ msg: this.stringService.errorForValidEmailAddress }); } const subject = "Test Email from Monitoring System"; diff --git a/server/locales/en.json b/server/locales/en.json index b53c6d406..5496b0e74 100755 --- a/server/locales/en.json +++ b/server/locales/en.json @@ -159,5 +159,6 @@ "testNotificationFailed": "Failed to send test notification", "monitorUpAlert": "Uptime Alert: One of your monitors is back online.\nšŸ“Œ Monitor: {monitorName}\nšŸ“… Time: {time}\nāš ļø Status: UP\nšŸ“Ÿ Status Code: {code}\n\u200B\n", "monitorDownAlert": "Downtime Alert: One of your monitors went offline.\nšŸ“Œ Monitor: {monitorName}\nšŸ“… Time: {time}\nāš ļø Status: DOWN\nšŸ“Ÿ Status Code: {code}\n\u200B\n", - "sendTestEmail": "Test email sent successfully" + "sendTestEmail": "Test email sent successfully", + "errorForValidEmailAddress": "A valid recipient email address is required." }