mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-12-26 11:03:06 +07:00
main: fix html input
This commit is contained in:
parent
fa231fb236
commit
3e56585910
6
main.js
6
main.js
@ -20,7 +20,7 @@ async function main() {
|
||||
body = core.getInput("body", {required: true})
|
||||
to = core.getInput("to", {required: true})
|
||||
from = core.getInput("from", {required: true})
|
||||
html = core.getInput("html")
|
||||
html = core.getInput("html") || "false"
|
||||
|
||||
transport = nodemailer.createTransport({
|
||||
host: server_address,
|
||||
@ -36,8 +36,8 @@ async function main() {
|
||||
from: `"${from}" <${username}>`,
|
||||
to: to,
|
||||
subject: subject,
|
||||
text: !html ? get_body(body) : undefined,
|
||||
html: html ? get_body(body) : undefined,
|
||||
text: html == "false" ? get_body(body) : undefined,
|
||||
html: html == "true" ? get_body(body) : undefined,
|
||||
})
|
||||
|
||||
console.log(info)
|
||||
|
Loading…
Reference in New Issue
Block a user