diff --git a/main.js b/main.js index 62e35100..4514ddbb 100644 --- a/main.js +++ b/main.js @@ -33,7 +33,7 @@ function getFrom(from, username) { async function getAttachments(attachments) { const globber = await glob.create(attachments.split(',').join('\n')) const files = await globber.glob() - return files + return files.map(f => ({ path: f })) } async function main() { @@ -73,8 +73,6 @@ async function main() { } : undefined, }) - console.log(await getAttachments(attachments)) - const info = await transport.sendMail({ from: getFrom(from, username), to: to,