Browse Source
Merge pull request #6002 from Budibase/bug/sev3/send-email-validation-automation
Make 'to' field undefined if empty for consistent validation
master
melohagan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
packages/server/src/automations/steps/sendSmtpEmail.js
|
|
|
@ -53,6 +53,7 @@ exports.run = async function ({ inputs }) { |
|
|
|
if (!contents) { |
|
|
|
contents = "<h1>No content</h1>" |
|
|
|
} |
|
|
|
to = to || undefined |
|
|
|
try { |
|
|
|
let response = await sendSmtpEmail(to, from, subject, contents, true) |
|
|
|
return { |
|
|
|
|