private static instance: Emailer
private initialized = false
private transporter: Transporter
+ private enabled = false
private constructor () {}
tls,
auth
})
+
+ this.enabled = true
} else {
if (!isTestInstance()) {
logger.error('Cannot use SMTP server because of lack of configuration. PeerTube will not be able to send mails!')
}
}
+ isEnabled () {
+ return this.enabled
+ }
+
async checkConnectionOrDie () {
if (!this.transporter) return