From 5f0d2ece476333b5846c212cbfb1f6c6997832af Mon Sep 17 00:00:00 2001 From: philc Date: Fri, 19 Jul 2024 16:53:25 +0200 Subject: [PATCH] change cc notification --- models/Notifications.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/Notifications.js b/models/Notifications.js index 97f3ef0..ef8a266 100644 --- a/models/Notifications.js +++ b/models/Notifications.js @@ -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)) }