aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/config.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index 1630f7f0c..ba79b4ea1 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -344,7 +344,11 @@ function registerConfigChangedHandler (fun: Function) {
344} 344}
345 345
346function isEmailEnabled () { 346function isEmailEnabled () {
347 return !!CONFIG.SMTP.HOSTNAME && !!CONFIG.SMTP.PORT 347 if (CONFIG.SMTP.TRANSPORT === 'sendmail' && CONFIG.SMTP.SENDMAIL) return true
348
349 if (CONFIG.SMTP.TRANSPORT === 'smtp' && CONFIG.SMTP.HOSTNAME && CONFIG.SMTP.PORT) return true
350
351 return false
348} 352}
349 353
350// --------------------------------------------------------------------------- 354// ---------------------------------------------------------------------------