Start working on nodemailer upgrade

This commit is contained in:
Calvin Montgomery 2017-09-25 22:31:45 -07:00
parent 071def0838
commit 9cfe71d4c4
4 changed files with 111 additions and 1 deletions

View file

@ -0,0 +1,29 @@
class EmailConfig {
constructor(config) {
this.config = config;
}
getPasswordReset() {
const reset = this.config['password-reset'];
return {
getHTML() {
return reset['html-template'];
},
getText() {
return reset['text-template'];
},
getFrom() {
return reset['from'];
},
getSubject() {
return reset['subject'];
}
};
}
}
export { EmailConfig };