From 192dff9a06554d91683bc807261f6ff45ffc36e9 Mon Sep 17 00:00:00 2001 From: Yash Rajpal <58601732+yash-rajpal@users.noreply.github.com> Date: Wed, 19 Apr 2023 02:25:23 +0530 Subject: [PATCH] regression: smtp connection error (#28942) --- apps/meteor/app/mailer/server/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/app/mailer/server/api.ts b/apps/meteor/app/mailer/server/api.ts index 78aae4e862c..f732ed3f0f5 100644 --- a/apps/meteor/app/mailer/server/api.ts +++ b/apps/meteor/app/mailer/server/api.ts @@ -171,7 +171,7 @@ export const sendNoWrap = async ({ const eventResult = await Apps.triggerEvent('IPreEmailSent', { email }); - Meteor.defer(() => Email.sendAsync(eventResult || email)); + Meteor.defer(() => Email.sendAsync(eventResult || email).catch((e) => console.error(e))); }; export const send = async ({