Start working on nodemailer upgrade
This commit is contained in:
parent
071def0838
commit
9cfe71d4c4
4 changed files with 111 additions and 1 deletions
29
src/configuration/emailconfig.js
Normal file
29
src/configuration/emailconfig.js
Normal 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 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue