diff --git a/apps/client/pages/admin/smtp/index.tsx b/apps/client/pages/admin/smtp/index.tsx index 1ad93c285..c2f06a504 100644 --- a/apps/client/pages/admin/smtp/index.tsx +++ b/apps/client/pages/admin/smtp/index.tsx @@ -62,6 +62,19 @@ export default function Notifications() { }); } + async function resetSMTP() { + await fetch(`/api/v1/config/email`, { + method: "DELETE", + headers: { + Authorization: `Bearer ${getCookie("session")}`, + }, + }) + .then((res) => res.json()) + .then(() => { + fetchEmailConfig(); + }); + } + async function fetchEmailConfig() { await fetch(`/api/v1/config/email`, { method: "GET", @@ -97,10 +110,14 @@ export default function Notifications() {
-
+

SMTP Email Settings

+ +