import { ReactElement } from "react"; import useSWR from "swr"; import { observer } from "mobx-react-lite"; // layouts import { InstanceAdminLayout } from "layouts/admin-layout"; // types import { NextPageWithLayout } from "lib/types"; // hooks import { useApplication } from "hooks/store"; // ui import { Loader } from "@plane/ui"; // components import { InstanceEmailForm } from "components/instance"; const InstanceAdminEmailPage: NextPageWithLayout = observer(() => { // store const { instance: { fetchInstanceConfigurations, formattedConfig }, } = useApplication(); useSWR("INSTANCE_CONFIGURATIONS", () => fetchInstanceConfigurations()); return (
Secure emails from your own instance
Plane can send useful emails to you and your users from your own instance without talking to the Internet.
Set it up below and please test your settings before you save them.{" "} Misconfigs can lead to email bounces and errors.
{formattedConfig ? ( ) : (
)}
); }); InstanceAdminEmailPage.getLayout = function getLayout(page: ReactElement) { return {page}; }; export default InstanceAdminEmailPage;