Browse Source
Merge pull request #2884 from Budibase/fix/backup-smtp
Fix backup SMTP
gh-pages
Rory Powell
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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, |
|
|
|
|