mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2024-11-10 05:51:07 +07:00
Do not add attachment in case it's not specified
This commit is contained in:
parent
d4b4fe8144
commit
a5cba0b6c1
4
main.js
4
main.js
@ -48,9 +48,9 @@ async function main() {
|
||||
subject: subject,
|
||||
text: content_type != "text/html" ? get_body(body) : undefined,
|
||||
html: content_type == "text/html" ? get_body(body) : undefined,
|
||||
attachments: {
|
||||
attachments: attach_file ? {
|
||||
path: attach_file
|
||||
}
|
||||
} : undefined
|
||||
})
|
||||
|
||||
console.log(info)
|
||||
|
Loading…
Reference in New Issue
Block a user