1
0
forked from apxtri/apxtri

change cc notification

This commit is contained in:
philc 2024-07-19 16:53:25 +02:00
parent 22333d7db9
commit 5f0d2ece47

View File

@ -239,10 +239,10 @@ Notifications.manageemail = (data, template, tribe) => {
const dat = {};
dat.to = e;
dat.subject = Mustache.render(tplemail.subject, data);
dat.html = Mustache.render(tplemail.subject, data);
dat.html = Mustache.render(tplemail.html, data);
dat.text = Mustache.render(tplemail.text, data);
dat.Cc = data.Cc ? tplemail.Cc.push(data.Cc) : tplemail.Cc;
dat.Bcc = data.Bcc ? tplemail.Bcc.push(data.Bcc) : tplemail.Bcc;
//dat.Cc = data.Cc ? tplemail.Cc.push(data.Cc) : tplemail.Cc;
//dat.Bcc = data.Bcc ? tplemail.Bcc.push(data.Bcc) : tplemail.Bcc;
if (data.attachments){
data.attachments.forEach(a=>tplemail.attachments.push(a))
}