Fix nodemailer 'require' name
This commit is contained in:
parent
062efd940f
commit
769946f818
|
@ -7,6 +7,7 @@ const smtpUser = process.env.OWL_EML_USER
|
||||||
const smtpPass = process.env.OWL_EML_PASS
|
const smtpPass = process.env.OWL_EML_PASS
|
||||||
const smtpHost = process.env.OWL_EML_HOST
|
const smtpHost = process.env.OWL_EML_HOST
|
||||||
const smtpPort = process.env.OWL_EML_PORT
|
const smtpPort = process.env.OWL_EML_PORT
|
||||||
|
// The 'secure' option is not optional to ensure it is not accidentally omitted
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
host: smtpHost,
|
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) {
|
async function sendTest(to, subject, plaintext, html) {
|
||||||
log.out(`mailServices.sendTest: Sending test message to: ${to}, subject: ${subject}`, "info")
|
log.out(`mailServices.sendTest: Sending test message to: ${to}, subject: ${subject}`, "info")
|
||||||
|
|
Loading…
Reference in New Issue