TLS Options Set Up
This commit is contained in:
1 parent
01ed3d8aaa
commit
7e1a7066fc
3 files changed
+18
-3
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user