aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/config.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-26 09:28:28 +0100
committerChocobozzz <me@florianbigard.com>2021-01-26 09:28:49 +0100
commit448487a60216dcfe1ae29fa581cb31c726f1441b (patch)
tree4f5aa8077e6ba7d77e3096619e4ef2ac13cb23e2 /server/initializers/config.ts
parent1735ef31017102e27f2d050a3428f43d055aa110 (diff)
downloadPeerTube-448487a60216dcfe1ae29fa581cb31c726f1441b.tar.gz
PeerTube-448487a60216dcfe1ae29fa581cb31c726f1441b.tar.zst
PeerTube-448487a60216dcfe1ae29fa581cb31c726f1441b.zip
Fix sendmail emailer
Diffstat (limited to 'server/initializers/config.ts')
-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// ---------------------------------------------------------------------------