1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

Merge pull request #6002 from Budibase/bug/sev3/send-email-validation-automation

Make 'to' field undefined if empty for consistent validation
This commit is contained in:
melohagan 2022-05-26 14:08:28 +01:00 committed by GitHub
commit ef7a7c350b

View file

@ -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 {