Don't display errors when SMTP is not configured

info is enough
pull/5138/head
Chocobozzz 2022-07-12 16:32:05 +02:00
parent 46f7cd6837
commit eaaf316fe1
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ class Emailer {
async sendMail (options: EmailPayload) {
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