mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-18 01:44:33 +02:00
Fix:nodemailer transport object only use secure: true when port is 465 #2765
This commit is contained in:
parent
00bc50c02d
commit
bd1309b680
1 changed files with 4 additions and 0 deletions
|
@ -105,6 +105,10 @@ class EmailSettings {
|
||||||
host: this.host,
|
host: this.host,
|
||||||
secure: this.secure
|
secure: this.secure
|
||||||
}
|
}
|
||||||
|
// Only set to true for port 465 (https://nodemailer.com/smtp/#tls-options)
|
||||||
|
if (this.port !== 465) {
|
||||||
|
payload.secure = false
|
||||||
|
}
|
||||||
if (this.port) payload.port = this.port
|
if (this.port) payload.port = this.port
|
||||||
if (this.user && this.pass !== undefined) {
|
if (this.user && this.pass !== undefined) {
|
||||||
payload.auth = {
|
payload.auth = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue