diff --git a/main.js b/main.js index feadfce5..d36b8077 100644 --- a/main.js +++ b/main.js @@ -44,6 +44,7 @@ async function main() { const contentType = core.getInput("content_type", { required: true }) const attachments = core.getInput("attachments", { required: false }) const convertMarkdown = core.getInput("convert_markdown", { required: false }) + const ignoreCert = core.getInput("ignore_cert", { required: false }) const transport = nodemailer.createTransport({ host: serverAddress, @@ -53,6 +54,9 @@ async function main() { user: username, pass: password, } + tls: ignoreCert ? { + rejectUnauthorized: false + } : undefined }) const info = await transport.sendMail({