First full release

This commit is contained in:
Luka Romih
2023-03-10 12:50:23 +01:00
parent 257f3c354f
commit 9867875ef2
285 changed files with 10980 additions and 4692 deletions
+15 -2
View File
@@ -3,15 +3,28 @@ const htmlToText = require('nodemailer-html-to-text').htmlToText()
const {
smtpHost,
smtpPort,
smtpTlsRejectUnauthorized,
smtpUser,
smtpPassword,
smtpSecure,
smtpRequireTls,
smtpAllowInvalidCerts,
smtpFrom
} = require('../config/keys')
const options = {
host: smtpHost,
port: smtpPort,
tls: { rejectUnauthorized: smtpTlsRejectUnauthorized }
secure: smtpSecure,
requireTLS: smtpRequireTls,
tls: { rejectUnauthorized: !smtpAllowInvalidCerts }
}
if (smtpUser || smtpPassword) {
options.auth = {
user: smtpUser,
pass: smtpPassword
}
}
const defaults = { from: smtpFrom }
const transporter = nodemailer.createTransport(options, defaults)