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: {
|
||||
|
||||
@@ -135,6 +135,8 @@ export interface NotificationAgentEmail extends NotificationAgentConfig {
|
||||
smtpHost: string;
|
||||
smtpPort: number;
|
||||
secure: boolean;
|
||||
ignoreTls: boolean;
|
||||
requireTls: boolean;
|
||||
authUser?: string;
|
||||
authPass?: string;
|
||||
allowSelfSigned: boolean;
|
||||
@@ -275,6 +277,8 @@ class Settings {
|
||||
smtpHost: '',
|
||||
smtpPort: 587,
|
||||
secure: false,
|
||||
ignoreTls: false,
|
||||
requireTls: false,
|
||||
allowSelfSigned: false,
|
||||
senderName: 'Overseerr',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user