Added returing of error message if the mail fails.
This commit is contained in:
1 parent
73e3aaf017
commit
0b9535820f
1 file changed
+6
@@ -668,6 +668,12 @@ class MonitorController {
|
|||||||
subject
|
subject
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!messageId) {
|
||||||
|
return res.error({
|
||||||
|
msg: "Failed to send test email.",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return res.success({
|
return res.success({
|
||||||
msg: "Test email sent successfully.",
|
msg: "Test email sent successfully.",
|
||||||
data: { messageId },
|
data: { messageId },
|
||||||
|
|||||||
Reference in new issue
Block a user