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)) }