mirror of https://github.com/Chocobozzz/PeerTube
parent
46f7cd6837
commit
eaaf316fe1
|
@ -132,7 +132,8 @@ class Emailer {
|
||||||
|
|
||||||
async sendMail (options: EmailPayload) {
|
async sendMail (options: EmailPayload) {
|
||||||
if (!isEmailEnabled()) {
|
if (!isEmailEnabled()) {
|
||||||
throw new Error('Cannot send mail because SMTP is not configured.')
|
logger.info('Cannot send mail because SMTP is not configured.')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const fromDisplayName = options.from
|
const fromDisplayName = options.from
|
||||||
|
|
Loading…
Reference in New Issue