mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-07 02:09:46 -06:00
Added returing of error message if the mail fails.
This commit is contained in:
@@ -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