I just wanted to know how to specify the path in attachments in Nodemailer. I am getting this above-mentioned error. Can anyone specify how to specify the path?
var imagePath = path.join(__dirname, '/images/')
attachments : [{
filename: "Header@3x.png",
path:
${imagePath},
cid: 'headerImage'
}]