Files
AVEF/imports/startup/server/email.js

38 lines
1.2 KiB
JavaScript
Raw Normal View History

Accounts.emailTemplates.from = "Do Not Reply <no-reply@andersonvalleyeducation.org>";
Accounts.emailTemplates.siteName = "Anderson Valley Education Foundation";
Accounts.emailTemplates.resetPassword.txt = function(user, url) {
let result;
result = "Hello,\n\
\n\
To reset your password, simply click the link below\n\
\n\
" + url.replace("#/reset-password","ResetPwd") + "\n\
\n\
Thank you,\n\
\tAnderson Valley Education Foundation";
return result;
};
Accounts.emailTemplates.resetPassword.html = function(user, url) {
let result;
result = "<p>Hello,</p>\
<p>To reset your password, simply click the link below</p>\
<a href='" + url.replace("#/reset-password","ResetPwd") + "'>Reset Link</a>\
<p>Thank you,<br/>\
<span style='text-indent: 20px'>Anderson Valley Education Foundation</span></p>";
return result;
};
// Accounts.emailTemplates.verifyEmail.subject = function (user) {
// return "Welcome to My Site! Please verify your email";
// };
//
// Accounts.emailTemplates.verifyEmail.html = function (user, url) {
// return "Hi " + user.profile.firstName + " " + user.profile.lastName + ",\n\n" +
// " Please verify your email by simply clicking the link below:\n\n" +
// url;
// };