fix: modified IS_SMTP_CONFIGURED to only check for port and host (#2740)

This commit is contained in:
Dhruwang Jariwala
2024-06-06 20:34:12 +05:30
committed by GitHub
parent 7649095c03
commit b49ca8087a

View File

@@ -30,8 +30,7 @@ import { ResponseFinishedEmail } from "./components/survey/ResponseFinishedEmail
import { NoLiveSurveyNotificationEmail } from "./components/weekly-summary/NoLiveSurveyNotificationEmail";
import { WeeklySummaryNotificationEmail } from "./components/weekly-summary/WeeklySummaryNotificationEmail";
export const IS_SMTP_CONFIGURED: boolean =
SMTP_HOST && SMTP_PORT && SMTP_USER && SMTP_PASSWORD ? true : false;
export const IS_SMTP_CONFIGURED: boolean = SMTP_HOST && SMTP_PORT ? true : false;
interface sendEmailData {
to: string;