TLS Options Set Up

This commit is contained in:
Br0wnHammer committed 2025-06-11 15:11:28 +05:30
1 parent 01ed3d8aaa
commit 7e1a7066fc
3 files changed
+18 -3

No files matched your search

+8 -1
View File
@@ -105,6 +105,10 @@ class EmailService {
systemEmailAddress,
systemEmailPassword,
systemEmailConnectionHost,
systemEmailTLSServername,
systemEmailIgnoreTLS,
systemEmailRequireTLS,
systemEmailRejectUnauthorized,
} = config;
const baseEmailConfig = {
@@ -126,7 +130,10 @@ class EmailService {
name: systemEmailConnectionHost || "localhost",
secure: false,
pool: true,
tls: { rejectUnauthorized: false },
tls: { rejectUnauthorized: systemEmailRejectUnauthorized },
ignoreTLS: systemEmailIgnoreTLS,
requireTLS: systemEmailRequireTLS,
servername: systemEmailTLSServername,
}
: baseEmailConfig;