modif to force brevo to accept email

This commit is contained in:
2026-04-17 13:32:43 +02:00
parent e3eceed473
commit af5c6ffe89
+1 -2
View File
@@ -460,14 +460,13 @@ Notifications.sendmail = async (data, tribe) => {
if (!data.from || data.from == conf.emailcontact)
data.from = conftrib.emailcontact;
if (conftrib.BREVO){
console.log("force subscribe for ", data.to)
const toEmails = data.to.split(",");
for (const email of toEmails) {
await ensureContact(email,conftrib.BREVO.APIKEY);
}
}
} else {
console.log("test path:",path.resolve(conftribfile))
if (log) console.log(currentmod,"Warning: this conf does not exist:",path.resolve(conftribfile));
}
//console.log(confsmtp);