- Delete Event with ask confirmation
- Fix dateStart only 1 view if is the same day - Sending a message from the Event Page: to a user or to a "Event" - Add button "Ask Info" - Starting view msg into the messagepopup component
This commit is contained in:
@@ -55,8 +55,7 @@ module.exports = {
|
||||
// htmlToText: false
|
||||
});
|
||||
|
||||
|
||||
email
|
||||
return email
|
||||
.send({
|
||||
template: template,
|
||||
message: {
|
||||
@@ -64,8 +63,13 @@ module.exports = {
|
||||
},
|
||||
locals: mylocalsconf,
|
||||
})
|
||||
.then(console.log)
|
||||
.catch(console.error);
|
||||
.then((ris) => {
|
||||
return !!ris
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
return false
|
||||
});
|
||||
},
|
||||
|
||||
sendEmail_Normale: function (to, subject, html, replyTo) {
|
||||
@@ -219,7 +223,7 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
|
||||
sendEmail_Msg: function (res, lang, emailto, user, idapp, recbooking) {
|
||||
sendEmail_Msg: function (res, lang, emailto, user, idapp, recmsg) {
|
||||
|
||||
tools.mylog('sendEmail_Msg');
|
||||
tools.mylog('tools.getNomeAppByIdApp(idapp)', tools.getNomeAppByIdApp(idapp), idapp);
|
||||
@@ -229,13 +233,14 @@ module.exports = {
|
||||
nomeapp: tools.getNomeAppByIdApp(idapp),
|
||||
name: user.name,
|
||||
surname: user.surname,
|
||||
usernameorig: user.name + ' ' + user.surname,
|
||||
emailto: emailto,
|
||||
msgbooking: recbooking.msgbooking,
|
||||
eventtextplain: tools.removeSpecialCharForEmail(recbooking.infoevent),
|
||||
event: recbooking.infoevent,
|
||||
message: recmsg.message,
|
||||
infoevent: recmsg.origin.infoevent,
|
||||
strlinkreply: tools.getHostByIdApp(idapp) + '/messages/' + recmsg._id
|
||||
};
|
||||
|
||||
this.sendEmail_base('msg/sendmsg/' + lang, user, emailto, mylocalsconf, tools.getreplyToEmailByIdApp(idapp));
|
||||
return this.sendEmail_base('msg/sendmsg/' + lang, user, emailto, mylocalsconf, tools.getreplyToEmailByIdApp(idapp));
|
||||
|
||||
// Send Email also to the Admin
|
||||
// this.sendEmail_base('admin/sendmsg/' + lang, user, tools.getAdminEmailByIdApp(idapp), mylocalsconf);
|
||||
|
||||
Reference in New Issue
Block a user