mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-10 08:49:54 -06:00
fix: error should not be thrown if SMTP is unconfigured (#5524)
This commit is contained in:
@@ -50,6 +50,10 @@ interface SendEmailDataProps {
|
||||
}
|
||||
|
||||
export const sendEmail = async (emailData: SendEmailDataProps): Promise<boolean> => {
|
||||
if (!IS_SMTP_CONFIGURED) {
|
||||
logger.info("SMTP is not configured, skipping email sending");
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
const transporter = createTransport({
|
||||
host: SMTP_HOST,
|
||||
|
||||
Reference in New Issue
Block a user