Added returing of error message if the mail fails.

This commit is contained in:
Owaise Imdad
2025-05-06 00:22:26 +05:30
parent 73e3aaf017
commit 0b9535820f

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 },