notify: function(user, message)
{
const subject = "vchess.club - notification";
- const body = "Hello " + user.name + "!\n" + message;
+ const body = "Hello " + user.name + "!" + params.lineBreak + message;
sendEmail(params.mail.noreply, user.email, subject, body);
},
if (!!err)
return res.json({errmsg: err.toString()});
const body =
- "Hello " + to.name + "!\\n" +
+ "Hello " + to.name + "!" + params.lineBreak +
"Access your account here: " +
- params.siteURL + "/#/authenticate/" + token + "\\n" +
+ params.siteURL + "/#/authenticate/" + token + params.lineBreak +
"Token will expire in " + params.token.expire/(1000*60) + " minutes."
sendEmail(params.mail.noreply, to.email, subject, body, err => {
res.json(err || {});