Allow to control emails prefix and signature with config (#1789)

* Allow to control emails prefix and signature with config

* Adapt email config according to @Chocobozzz review
This commit is contained in:
Yohan Boniface
2019-05-17 14:10:19 +02:00
committed by Chocobozzz
parent 3daaa19274
commit b5bfadf0b5
3 changed files with 47 additions and 33 deletions

View File

@@ -44,6 +44,14 @@ const CONFIG = {
CA_FILE: config.get<string>('smtp.ca_file'),
FROM_ADDRESS: config.get<string>('smtp.from_address')
},
EMAIL: {
BODY: {
SIGNATURE: config.get<string>('email.body.signature')
},
OBJECT: {
PREFIX: config.get<string>('email.object.prefix') + ' '
}
},
STORAGE: {
TMP_DIR: buildPath(config.get<string>('storage.tmp')),
AVATARS_DIR: buildPath(config.get<string>('storage.avatars')),