mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Don't display errors when SMTP is not configured
info is enough
This commit is contained in:
parent
46f7cd6837
commit
eaaf316fe1
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue