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
|
||||
);
|
||||
|
||||
if (!messageId) {
|
||||
return res.error({
|
||||
msg: "Failed to send test email.",
|
||||
});
|
||||
}
|
||||
|
||||
return res.success({
|
||||
msg: "Test email sent successfully.",
|
||||
data: { messageId },
|
||||
|
||||
Reference in new issue
Block a user