diff --git a/server/monitor-types/smtp.js b/server/monitor-types/smtp.js index e5f67157d..f4a49e238 100644 --- a/server/monitor-types/smtp.js +++ b/server/monitor-types/smtp.js @@ -12,9 +12,9 @@ class SMTPMonitorType extends MonitorType { let options = { port: monitor.port || 25, host: monitor.hostname, - secure: smtpSecurity === "secure", // use SMTPS (not STARTTLS) - ignoreTLS: smtpSecurity === "nostarttls", // don't use STARTTLS even if it's available - requireTLS: smtpSecurity === "starttls", // use STARTTLS or fail + secure: monitor.smtpSecurity === "secure", // use SMTPS (not STARTTLS) + ignoreTLS: monitor.smtpSecurity === "nostarttls", // don't use STARTTLS even if it's available + requireTLS: monitor.smtpSecurity === "starttls", // use STARTTLS or fail }; let transporter = nodemailer.createTransport(options); try {