Open Nokel81 opened 7 years ago
Done in gmail-send@1.2.11
, with different property name:
...
var filepath = './demo-attachment.txt'; // File to attach
send({
files: [ // Array of files to attach
filepath, // Old behavior, attach file without any changes
{ // Now you can also define file properties
path: filepath,
filename: 'filename-can-be-changed.txt' // You can override filename in the attachment if needed
}
],
},
...
});
Please, confirm it is working.
for me its not working
Can you provide more info: versions, code samples etc.
I used latest Version, and the Sample from the npm page. But i dont need it anymore, thank you anyway 👍
Allow the files option to take a object or an array of objects with the following signature: