mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-08-16 18:44:37 +07:00
Make custom secure ports available (#51)
This commit is contained in:
3
main.js
3
main.js
@ -38,6 +38,7 @@ async function main() {
|
||||
const subject = core.getInput("subject", { required: true })
|
||||
const from = core.getInput("from", { required: true })
|
||||
const to = core.getInput("to", { required: true })
|
||||
const secure = core.getInput("secure", { required: false })
|
||||
const body = core.getInput("body", { required: false })
|
||||
const htmlBody = core.getInput("html_body", { required: false })
|
||||
const cc = core.getInput("cc", { required: false })
|
||||
@ -50,7 +51,7 @@ async function main() {
|
||||
const transport = nodemailer.createTransport({
|
||||
host: serverAddress,
|
||||
port: serverPort,
|
||||
secure: serverPort == "465",
|
||||
secure: secure ? true : serverPort == "465",
|
||||
auth: {
|
||||
user: username,
|
||||
pass: password,
|
||||
|
Reference in New Issue
Block a user