fix dumb typo

This commit is contained in:
Brad Koehn 2025-01-24 12:02:05 -06:00
parent 340bfd7377
commit 9c5b19c1d7
No known key found for this signature in database

View file

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