mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-12-26 19:13:06 +07:00
main: don't set content-type header
This commit is contained in:
parent
09f36a9696
commit
f2e1b7650c
11
main.js
11
main.js
@ -23,8 +23,7 @@ async function main() {
|
|||||||
const from = core.getInput("from", { required: true })
|
const from = core.getInput("from", { required: true })
|
||||||
const content_type = core.getInput("content_type", { required: true })
|
const content_type = core.getInput("content_type", { required: true })
|
||||||
|
|
||||||
const transport = nodemailer.createTransport(
|
const transport = nodemailer.createTransport({
|
||||||
{
|
|
||||||
host: server_address,
|
host: server_address,
|
||||||
port: server_port,
|
port: server_port,
|
||||||
secure: server_port == "465",
|
secure: server_port == "465",
|
||||||
@ -32,13 +31,7 @@ async function main() {
|
|||||||
user: username,
|
user: username,
|
||||||
pass: password,
|
pass: password,
|
||||||
}
|
}
|
||||||
},
|
})
|
||||||
{
|
|
||||||
headers: {
|
|
||||||
"Content-Type": content_type
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
const info = await transport.sendMail({
|
const info = await transport.sendMail({
|
||||||
from: `"${from}" <${username}>`,
|
from: `"${from}" <${username}>`,
|
||||||
|
Loading…
Reference in New Issue
Block a user