mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat(email): replace 'Enable SSL' setting with more descriptive/clear 'Encryption Method' setting (#1549)
* feat(email): replace 'Enable SSL' setting with more descriptive/clear 'Encryption Method' setting * fix: clarify settings & add true 'none' option
This commit is contained in:
@@ -13,6 +13,8 @@ class PreparedEmail extends Email {
|
||||
host: settings.options.smtpHost,
|
||||
port: settings.options.smtpPort,
|
||||
secure: settings.options.secure,
|
||||
ignoreTLS: settings.options.ignoreTls,
|
||||
requireTLS: settings.options.requireTls,
|
||||
tls: settings.options.allowSelfSigned
|
||||
? {
|
||||
rejectUnauthorized: false,
|
||||
@@ -26,6 +28,7 @@ class PreparedEmail extends Email {
|
||||
}
|
||||
: undefined,
|
||||
});
|
||||
|
||||
if (pgpKey) {
|
||||
transport.use(
|
||||
'stream',
|
||||
@@ -36,6 +39,7 @@ class PreparedEmail extends Email {
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
super({
|
||||
message: {
|
||||
from: {
|
||||
|
Reference in New Issue
Block a user