From ec35b81af81872815d4d7949b3b2057a0e5d9f3b Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Mon, 4 Oct 2021 15:58:05 +0100 Subject: [PATCH] Fix backup SMTP --- packages/worker/src/utilities/email.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/worker/src/utilities/email.js b/packages/worker/src/utilities/email.js index 14c836952e..fb30591908 100644 --- a/packages/worker/src/utilities/email.js +++ b/packages/worker/src/utilities/email.js @@ -113,7 +113,7 @@ async function getSmtpConfiguration(db, workspaceId = null, automation) { params.workspace = workspaceId } - const customConfig = getScopedConfig(db, params) + const customConfig = await getScopedConfig(db, params) if (customConfig) { return customConfig @@ -125,6 +125,7 @@ async function getSmtpConfiguration(db, workspaceId = null, automation) { port: env.SMTP_PORT, host: env.SMTP_HOST, secure: false, + from: env.SMTP_FROM_ADDRESS, auth: { user: env.SMTP_USER, pass: env.SMTP_PASSWORD,