pis #12
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user