1
0
Fork 0
mirror of synced 2024-06-16 01:14:48 +12:00

Send CC and BCC

This commit is contained in:
Mel O'Hagan 2022-09-21 16:07:54 +01:00
parent a5571fc59a
commit a0a87e0b1d

View file

@ -174,7 +174,7 @@ exports.isEmailConfigured = async (workspaceId = null) => {
exports.sendEmail = async (
email,
purpose,
{ workspaceId, user, from, contents, subject, info, automation } = {}
{ workspaceId, user, from, contents, subject, info, cc, bcc, automation } = {}
) => {
const db = getGlobalDB()
let config = (await getSmtpConfiguration(db, workspaceId, automation)) || {}
@ -197,6 +197,8 @@ exports.sendEmail = async (
message = {
...message,
to: email,
cc: cc,
bcc: bcc,
}
if (subject || config.subject) {