server: fix send mail error

https://github.com/nodemailer/nodemailer/issues/406
This commit is contained in:
fantasticit 2022-07-25 15:41:25 +08:00
parent 0cde4bf977
commit 5e6cb0180a
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ export class SystemService {
user: emailConfig.user,
pass: emailConfig.pass,
},
tls: {
rejectUnauthorized: false,
},
});
return new Promise((resolve, reject) => {