From 5e6cb0180abbe605a02f771b18e2576b09420d32 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Mon, 25 Jul 2022 15:41:25 +0800 Subject: [PATCH] server: fix send mail error https://github.com/nodemailer/nodemailer/issues/406 --- packages/server/src/services/system.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/server/src/services/system.service.ts b/packages/server/src/services/system.service.ts index 0f0157d..b9bb65d 100644 --- a/packages/server/src/services/system.service.ts +++ b/packages/server/src/services/system.service.ts @@ -93,6 +93,9 @@ export class SystemService { user: emailConfig.user, pass: emailConfig.pass, }, + tls: { + rejectUnauthorized: false, + }, }); return new Promise((resolve, reject) => {