2
0

feat(editor): Add cc & bcc + Deletable credentials

This commit is contained in:
Baptiste Arnaud
2022-02-19 10:58:56 +01:00
parent c5972ec91b
commit b89e9b1b82
12 changed files with 210 additions and 38 deletions

View File

@ -192,6 +192,8 @@ const sendEmail = async (
recipients: options.recipients.map(parseVariables(variables)),
subject: parseVariables(variables)(options.subject ?? ''),
body: parseVariables(variables)(options.body ?? ''),
cc: (options.cc ?? []).map(parseVariables(variables)),
bcc: (options.bcc ?? []).map(parseVariables(variables)),
},
})
console.error(error)

View File

@ -43,6 +43,8 @@ export type SendEmailStep = StepBase & {
export type SendEmailOptions = {
credentialsId: string | 'default'
recipients: string[]
cc?: string[]
bcc?: string[]
subject?: string
body?: string
}