-Poter entrare nel login anche con l'username Telegram !
- Se clicchi sulla foto, mi apre il profilo anzichè l'invio dei RIS - ++ Filtro sulle ricerche: Scegliere un Circuito specifico. - Nella lista iscritti compaiono anche i cancellati... - n "Attività" si vede tutto allargato, non sta nella dimensione della pagina. - Nelle notifiche della campanellina non si vede più il titolo... (è vuoto). - Non funziona il Filtro per Settore (nella Home sugli Eventi) - Filtri avanzati da mostrare solo se clicco sul bottone. - I menu in basso non funzionano ! - Nel menu "Iscritti" del circuito, non compare più la ricerca ! Riattivarla - Opzione di mandare una email quando uno si registra al Circuito - ++ Opzione per il Circuito: Chiedi di entrare agli admin (e non in automatico).
This commit is contained in:
@@ -132,38 +132,43 @@ module.exports = {
|
||||
});
|
||||
},
|
||||
|
||||
sendEmail_Normale: async function (to, subject, html, replyTo) {
|
||||
sendEmail_Normale: async function (mylocalsconf, to, subject, html, replyTo) {
|
||||
|
||||
// setup e-mail data with unicode symbols
|
||||
var mailOptions = {
|
||||
from: tools.getEmailByIdApp(mylocalsconf.idapp), // sender address
|
||||
dataemail: await this.getdataemail(idapp),
|
||||
to: to,
|
||||
generateTextFromHTML: true,
|
||||
subject: subject,
|
||||
html: html,
|
||||
};
|
||||
try {
|
||||
// setup e-mail data with unicode symbols
|
||||
var mailOptions = {
|
||||
from: tools.getEmailByIdApp(mylocalsconf.idapp), // sender address
|
||||
dataemail: await this.getdataemail(mylocalsconf.idapp),
|
||||
to: to,
|
||||
generateTextFromHTML: true,
|
||||
subject: subject,
|
||||
html: html,
|
||||
};
|
||||
|
||||
if (replyTo)
|
||||
mailOptions['reply-to'] = replyTo;
|
||||
if (replyTo)
|
||||
mailOptions['reply-to'] = replyTo;
|
||||
|
||||
const smtpTransport = this.getTransport(mylocalsconf);
|
||||
const smtpTransport = this.getTransport(mylocalsconf);
|
||||
|
||||
if (process.env.SEND_EMAIL === '1') {
|
||||
// console.log("SEND EMAIL...");
|
||||
// send mail with defined transport object
|
||||
smtpTransport.sendMail(mailOptions, function (error, response) {
|
||||
if (error) {
|
||||
console.log('Email Inviata ERRORE RISPOSTA: ' + error);
|
||||
} else {
|
||||
// console.log("Email Inviata RISPOSTA: " + response);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if (process.env.PROVA_EMAIL_TEMPLATE !== '1')
|
||||
previewEmail(mailOptions).then(console.log).catch(console.error);
|
||||
else
|
||||
transport_preview.sendMail(mailOptions).then(console.log).catch(console.error);
|
||||
if (process.env.SEND_EMAIL === '1') {
|
||||
// console.log("SEND EMAIL...");
|
||||
// send mail with defined transport object
|
||||
smtpTransport.sendMail(mailOptions, function (error, response) {
|
||||
if (error) {
|
||||
console.log('Email Inviata ERRORE RISPOSTA: ' + error);
|
||||
} else {
|
||||
// console.log("Email Inviata RISPOSTA: " + response);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if (process.env.PROVA_EMAIL_TEMPLATE !== '1')
|
||||
previewEmail(mailOptions).then(console.log).catch(console.error);
|
||||
else
|
||||
transport_preview.sendMail(mailOptions).then(console.log).catch(console.error);
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
console.error('Errore Sendmail', e);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -497,27 +502,31 @@ module.exports = {
|
||||
|
||||
sendEmail_ByText: async function (lang, emailto, user, idapp, rec) {
|
||||
|
||||
tools.mylog('sendEmail_ByText');
|
||||
try {
|
||||
tools.mylog('sendEmail_ByText');
|
||||
|
||||
let mylocalsconf = {
|
||||
idapp,
|
||||
dataemail: await this.getdataemail(idapp),
|
||||
locale: lang,
|
||||
nomeapp: tools.getNomeAppByIdApp(idapp),
|
||||
usernameorig: user.name + ' ' + user.surname,
|
||||
};
|
||||
let mylocalsconf = {
|
||||
idapp,
|
||||
dataemail: await this.getdataemail(idapp),
|
||||
locale: lang,
|
||||
nomeapp: tools.getNomeAppByIdApp(idapp),
|
||||
usernameorig: user.name + ' ' + user.surname,
|
||||
};
|
||||
|
||||
mylocalsconf = this.setParamsForTemplate(user, mylocalsconf);
|
||||
mylocalsconf.emailto = emailto;
|
||||
mylocalsconf = this.setParamsForTemplate(user, mylocalsconf);
|
||||
mylocalsconf.emailto = emailto;
|
||||
|
||||
mylocalsconf.dataemail.emailbody = rec.emailbody;
|
||||
mylocalsconf.dataemail.emailtitle = rec.emailtitle;
|
||||
mylocalsconf.dataemail.emailbody = rec.emailbody;
|
||||
mylocalsconf.dataemail.emailtitle = rec.emailtitle;
|
||||
|
||||
if (!!mylocalsconf.dataemail.emailtitle && !!mylocalsconf.dataemail.emailbody) {
|
||||
const replyto = tools.getreplyToEmailByIdApp(idapp);
|
||||
if (!!mylocalsconf.dataemail.emailtitle && !!mylocalsconf.dataemail.emailbody) {
|
||||
const replyto = tools.getreplyToEmailByIdApp(idapp);
|
||||
|
||||
//return this.sendEmail_base('standard', emailto, mylocalsconf, replyto);
|
||||
return await this.sendEmail_Normale(emailto, mylocalsconf.dataemail.emailtitle, mylocalsconf.dataemail.emailbody, replyto);
|
||||
//return this.sendEmail_base('standard', emailto, mylocalsconf, replyto);
|
||||
return await this.sendEmail_Normale(mylocalsconf, emailto, mylocalsconf.dataemail.emailtitle, mylocalsconf.dataemail.emailbody, replyto);
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Errore sendEmail_ByText', e);
|
||||
}
|
||||
|
||||
// Send Email also to the Admin
|
||||
@@ -547,7 +556,7 @@ module.exports = {
|
||||
const replyto = tools.getreplyToEmailByIdApp(idapp);
|
||||
|
||||
//return this.sendEmail_base('standard', emailto, mylocalsconf, replyto);
|
||||
return await this.sendEmail_Normale(emailto, mylocalsconf.dataemail.emailtitle, mylocalsconf.dataemail.emailbody, replyto);
|
||||
return await this.sendEmail_Normale(mylocalsconf, emailto, mylocalsconf.dataemail.emailtitle, mylocalsconf.dataemail.emailbody, replyto);
|
||||
}
|
||||
|
||||
// Send Email also to the Admin
|
||||
|
||||
Reference in New Issue
Block a user