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:
TheCatLady
2021-05-04 06:31:33 -04:00
committed by GitHub
parent 11dc8ff92a
commit 69ab7cc660
5 changed files with 61 additions and 14 deletions

View File

@@ -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: {

View File

@@ -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',
},