fix(core): update

This commit is contained in:
Philipp Kunz 2020-08-15 12:58:54 +00:00
parent 9e44474348
commit b2eb8a2f59
2 changed files with 3 additions and 3 deletions

View File

@ -40,4 +40,4 @@
"npmextra.json",
"readme.md"
]
}
}

View File

@ -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,
});
}