modif to force brevo to accept email
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user