fix(core): update
This commit is contained in:
parent
9e44474348
commit
b2eb8a2f59
@ -40,4 +40,4 @@
|
||||
"npmextra.json",
|
||||
"readme.md"
|
||||
]
|
||||
}
|
||||
}
|
@ -37,14 +37,14 @@ export class Smartsmtp {
|
||||
subject: smartmailArg.getSubject(dataArg),
|
||||
text: smartmailArg.getBody(dataArg),
|
||||
html: smartmailArg.getBody(dataArg),
|
||||
attachments: []
|
||||
attachments: [],
|
||||
};
|
||||
|
||||
// lets add attachments from smartmailArg
|
||||
for (const attachment of smartmailArg.attachments) {
|
||||
message.attachments.push({
|
||||
filename: attachment.parsedPath.base,
|
||||
content: attachment.contentBuffer
|
||||
content: attachment.contentBuffer,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user