diff --git a/src/email-helpers.js b/src/email-helpers.js index 05b80cf..7d0cd00 100644 --- a/src/email-helpers.js +++ b/src/email-helpers.js @@ -108,7 +108,7 @@ const getmailOptions = (url, sender, recipient, file, emailSubject, note, emailb cid: 'opensearch_logo_darkmode' }, { - filename: file, + filename: path.basename(file), path: file }], template: 'index', @@ -126,4 +126,4 @@ function deleteTemporaryImage(emailbody) { if (fs.existsSync(emailbody)) { fs.unlinkSync(emailbody); } -} \ No newline at end of file +}