Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Oct 26, 2023
1 parent cba8ffe commit 986d0c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1932,9 +1932,9 @@ class Connection {
}

const ignoreMailCertErrors = await settings.get('ignoreMailCertErrors');
if (ignoreMailCertErrors && smtpConfig?.tls?.rejectUnauthorized !== false) {
smtpConfig.tls = smtpConfig.tls || {};
smtpConfig.tls.rejectUnauthorized = false;
if (ignoreMailCertErrors && smtpSettings?.tls?.rejectUnauthorized !== false) {
smtpSettings.tls = smtpSettings.tls || {};
smtpSettings.tls.rejectUnauthorized = false;
}

const transporter = nodemailer.createTransport(smtpSettings);
Expand Down

0 comments on commit 986d0c5

Please sign in to comment.