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