Added returing of error message if the mail fails.

This commit is contained in:
Owaise Imdad committed 2025-05-06 00:22:26 +05:30
1 parent 73e3aaf017
commit 0b9535820f
1 file changed
+6
+6
View File
@@ -668,6 +668,12 @@ class MonitorController {
subject
);
if (!messageId) {
return res.error({
msg: "Failed to send test email.",
});
}
return res.success({
msg: "Test email sent successfully.",
data: { messageId },