Merge pull request #1089 from tomribbens/unauthenticated_email

test if smtp user/pass config is set and if not set auth: null
This commit is contained in:
Owen Schwartz
2025-07-18 10:28:17 -07:00
committed by GitHub

View File

@@ -18,10 +18,10 @@ function createEmailClient() {
host: emailConfig.smtp_host,
port: emailConfig.smtp_port,
secure: emailConfig.smtp_secure || false,
auth: {
auth: (emailConfig.smtp_user && emailConfig.smtp_pass) ? {
user: emailConfig.smtp_user,
pass: emailConfig.smtp_pass
}
} : null
} as SMTPTransport.Options;
if (emailConfig.smtp_tls_reject_unauthorized !== undefined) {