Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
c018435aa1 | |||
b2eb8a2f59 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartsmtp",
|
"name": "@pushrocks/smartsmtp",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartsmtp",
|
"name": "@pushrocks/smartsmtp",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a module for handling smtp stuff",
|
"description": "a module for handling smtp stuff",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user