fix(core): update
This commit is contained in:
parent
9e44474348
commit
b2eb8a2f59
@ -40,4 +40,4 @@
|
|||||||
"npmextra.json",
|
"npmextra.json",
|
||||||
"readme.md"
|
"readme.md"
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -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…
x
Reference in New Issue
Block a user