string service for subject.
This commit is contained in:
1 parent
c2eeed8121
commit
bd23648079
2 files changed
+3
-2
No files matched your search
@@ -656,7 +656,7 @@ class MonitorController {
|
|||||||
return res.error({ msg: this.stringService.errorForValidEmailAddress });
|
return res.error({ msg: this.stringService.errorForValidEmailAddress });
|
||||||
}
|
}
|
||||||
|
|
||||||
const subject = "Test Email from Monitoring System";
|
const subject = this.stringService.testEmailSubject;
|
||||||
const context = { testName: "Monitoring System" };
|
const context = { testName: "Monitoring System" };
|
||||||
|
|
||||||
const messageId = await this.emailService.buildAndSendEmail(
|
const messageId = await this.emailService.buildAndSendEmail(
|
||||||
|
|||||||
@@ -160,5 +160,6 @@
|
|||||||
"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",
|
"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",
|
"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."
|
"errorForValidEmailAddress": "A valid recipient email address is required.",
|
||||||
|
"testEmailSubject": "Test Email from Monitoring System"
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user