Send CC and BCC
This commit is contained in:
parent
1b49f02092
commit
53e6b1d40b
|
@ -174,7 +174,7 @@ exports.isEmailConfigured = async (workspaceId = null) => {
|
||||||
exports.sendEmail = async (
|
exports.sendEmail = async (
|
||||||
email,
|
email,
|
||||||
purpose,
|
purpose,
|
||||||
{ workspaceId, user, from, contents, subject, info, automation } = {}
|
{ workspaceId, user, from, contents, subject, info, cc, bcc, automation } = {}
|
||||||
) => {
|
) => {
|
||||||
const db = getGlobalDB()
|
const db = getGlobalDB()
|
||||||
let config = (await getSmtpConfiguration(db, workspaceId, automation)) || {}
|
let config = (await getSmtpConfiguration(db, workspaceId, automation)) || {}
|
||||||
|
@ -197,6 +197,8 @@ exports.sendEmail = async (
|
||||||
message = {
|
message = {
|
||||||
...message,
|
...message,
|
||||||
to: email,
|
to: email,
|
||||||
|
cc: cc,
|
||||||
|
bcc: bcc,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subject || config.subject) {
|
if (subject || config.subject) {
|
||||||
|
|
Loading…
Reference in New Issue