Enable logging and debug of nodemailer (#190)

This should help A LOT to let people understand
why things go wrong in this action when talking to the mailhost
This commit is contained in:
Bernhard
2024-01-05 18:40:18 +01:00
committed by GitHub
parent 48476814b0
commit dc13c734ff
3 changed files with 14 additions and 0 deletions

View File

@ -91,6 +91,8 @@ async function main() {
const convertMarkdown = core.getInput("convert_markdown", { required: false })
const ignoreCert = core.getInput("ignore_cert", { required: false })
const priority = core.getInput("priority", { required: false })
const nodemailerlog = core.getInput("nodemailerlog", { required: false })
const nodemailerdebug = core.getInput("nodemailerdebug", { required: false })
// if neither to, cc or bcc is provided, throw error
if (!to && !cc && !bcc) {
@ -112,6 +114,8 @@ async function main() {
tls: ignoreCert == "true" ? {
rejectUnauthorized: false
} : undefined,
logger: nodemailerdebug == "true" ? true : nodemailerlog,
debug: nodemailerdebug,
})
const info = await transport.sendMail({