Blame view
server/accounts/email-templates.js
781 Bytes
5cb01249d
|
1 2 |
let appName = 'Application Name', appEmail = `${ appName } <support@application.com>`, |
c39994410
|
3 |
emailTemplates = Accounts.emailTemplates; |
5cb01249d
|
4 5 |
emailTemplates.siteName = appName; emailTemplates.from = appEmail; |
c39994410
|
6 7 8 |
emailTemplates.resetPassword = { subject() { |
5cb01249d
|
9 |
return `[${ appName }] Reset Your Password`; |
c39994410
|
10 11 |
}, text( user, url ) { |
db5aba845
|
12 |
let emailAddress = user.emails[ 0 ].address, |
5cb01249d
|
13 |
urlWithoutHash = url.replace( '#/', '' ); |
c39994410
|
14 |
|
5cb01249d
|
15 16 17 18 19 |
return `A password reset has been requested for the account related to this address (${ emailAddress }). To reset the password, visit the following link: ${ urlWithoutHash } If you did not request this reset, please ignore this email. If you feel something is wrong, please contact our support team: ${ appEmail }.`; |
c39994410
|
20 21 |
} }; |