- Chart Maps Nationality
- Username lowercase - Statistics - Telegram
This commit is contained in:
@@ -78,6 +78,8 @@ module.exports = {
|
||||
}
|
||||
|
||||
// console.log('2 . paramemail.transport', paramemail.transport);
|
||||
// console.log('user', tools.getEmailByIdApp(mylocalsconf.idapp));
|
||||
// console.log('pass', tools.getPwdByIdApp(mylocalsconf.idapp));
|
||||
|
||||
// console.log('paramemail', paramemail);
|
||||
|
||||
@@ -116,13 +118,13 @@ module.exports = {
|
||||
mailOptions['reply-to'] = replyTo;
|
||||
|
||||
if (process.env.SEND_EMAIL === 1) {
|
||||
console.log("SEND EMAIL...");
|
||||
// console.log("SEND EMAIL...");
|
||||
// send mail with defined transport object
|
||||
smtpTransport.sendMail(mailOptions, function (error, response) {
|
||||
if (error) {
|
||||
console.log(error);
|
||||
console.log("Email Inviata ERRORE RISPOSTA: " + error);
|
||||
} else {
|
||||
console.log("Email Inviata RISPOSTA: " + response);
|
||||
// console.log("Email Inviata RISPOSTA: " + response);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -303,7 +305,7 @@ module.exports = {
|
||||
},
|
||||
Add_to_MailingList_AndSendEmailNotify: async function (lang, user, idapp, sendnews) {
|
||||
|
||||
console.log('idapp', idapp, tools.getNomeAppByIdApp(idapp));
|
||||
// console.log('idapp', idapp, tools.getNomeAppByIdApp(idapp));
|
||||
|
||||
mylocalsconf = {
|
||||
idapp,
|
||||
@@ -442,9 +444,9 @@ module.exports = {
|
||||
templemail_id: await Settings.getValDbSettings(idapp, 'TEMPLEMAIL_ID'),
|
||||
};
|
||||
|
||||
console.log(mydata.templemail_id);
|
||||
// console.log(mydata.templemail_id);
|
||||
mydata.templ = await TemplEmail.findOne({_id: mydata.templemail_id });
|
||||
console.log(mydata.templ);
|
||||
// console.log(mydata.templ);
|
||||
|
||||
return mydata
|
||||
},
|
||||
@@ -547,7 +549,7 @@ module.exports = {
|
||||
await tools.snooze(5000);
|
||||
|
||||
// Send Email to the User
|
||||
console.log('-> Invio Email (', mynewsrec.numemail_sent, '/', mynewsrec.numemail_tot, ')');
|
||||
// console.log('-> Invio Email (', mynewsrec.numemail_sent, '/', mynewsrec.numemail_tot, ')');
|
||||
const esito = this.sendEmail_base('newsletter/' + lang, mylocalsconf.emailto, mylocalsconf, mylocalsconf.dataemail.email_reply, smtpTransport);
|
||||
|
||||
//Put the result in the database, to check if is sent or not.
|
||||
|
||||
Reference in New Issue
Block a user