{
const subject = "vchess.club - notification";
const body = "Hello " + user.name + "!" + `
- ` + message;
+` + message;
sendEmail(params.mail.noreply, user.email, subject, body);
},
return res.json({errmsg: err.toString()});
const body =
"Hello " + to.name + "!" + `
- ` +
+` +
"Access your account here: " +
params.siteURL + "/#/authenticate/" + token + `
- ` +
+` +
"Token will expire in " + params.token.expire/(1000*60) + " minutes."
sendEmail(params.mail.noreply, to.email, subject, body, err => {
res.json(err || {});
{
console.log("New mail: from " + from + " / to " + to);
console.log("Subject: " + subject);
- let msgText = body.split('\\n');
- msgText.forEach(msg => { console.log(msg); });
+ console.log(body);
if (!cb)
cb = (err) => { if (!!err) console.log(err); }
return cb();