From b5bfadf0b5365481179936fd3058134fd8be8e18 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 17 May 2019 14:10:19 +0200 Subject: 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 --- server/initializers/config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/initializers') diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 4f77e144d..723755c45 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts @@ -44,6 +44,14 @@ const CONFIG = { CA_FILE: config.get('smtp.ca_file'), FROM_ADDRESS: config.get('smtp.from_address') }, + EMAIL: { + BODY: { + SIGNATURE: config.get('email.body.signature') + }, + OBJECT: { + PREFIX: config.get('email.object.prefix') + ' ' + } + }, STORAGE: { TMP_DIR: buildPath(config.get('storage.tmp')), AVATARS_DIR: buildPath(config.get('storage.avatars')), -- cgit v1.2.3