Fix nodemailer 'require' name

This commit is contained in:
Fred Boniface 2023-04-01 15:11:26 +01:00
parent 062efd940f
commit 769946f818
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ const smtpUser = process.env.OWL_EML_USER
const smtpPass = process.env.OWL_EML_PASS
const smtpHost = process.env.OWL_EML_HOST
const smtpPort = process.env.OWL_EML_PORT
// The 'secure' option is not optional to ensure it is not accidentally omitted
const options = {
host: smtpHost,
@ -18,7 +19,7 @@ const options = {
}
}
let transporter = nodemailer.createTransport(options)
let transporter = mail.createTransport(options)
async function sendTest(to, subject, plaintext, html) {
log.out(`mailServices.sendTest: Sending test message to: ${to}, subject: ${subject}`, "info")