Fixed an issue with broken archive link. Added plaintext versions for transactional messages

This commit is contained in:
Andris Reinman 2016-04-08 15:00:54 +03:00
parent 4584c85b4b
commit 06d5e0d9bf
11 changed files with 144 additions and 63 deletions

View file

@ -218,8 +218,10 @@ module.exports.sendReset = (username, callback) => {
},
subject: 'Mailer password change request'
}, {
template: 'emails/password-reset.hbs',
html: 'emails/password-reset-html.hbs',
text: 'emails/password-reset-text.hbs',
data: {
title: 'Mailtrain',
username: rows[0].username,
confirmUrl: urllib.resolve(configItems.serviceUrl, '/users/reset') + '?token=' + encodeURIComponent(resetToken) + '&username=' + encodeURIComponent(rows[0].username)
}