fix: log sendTestEmail errors and show error toast for 15s so it can be read

This commit is contained in:
ghassan committed 2026-05-26 16:31:45 +03:00
1 parent 9115bc9630
commit c6a12163bb
2 files changed
+2 -1

No files matched your search

@@ -84,6 +84,7 @@ class MailAccountController extends Controller
);
return response()->json(['success' => true]);
} catch (\Exception $e) {
\Illuminate\Support\Facades\Log::error('sendTestEmail failed: ' . $e->getMessage(), ['account' => $mailAccount->name]);
return response()->json(['success' => false, 'message' => $e->getMessage()]);
}
}