diff options
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 6 |
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 | ||
346 | function isEmailEnabled () { | 346 | function 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 | // --------------------------------------------------------------------------- |