How to attach file to an email with nodemailer
Include in the var mailOption the key attachments, as follow: var mailOptions = { … attachments: [ { // utf-8 string as an attachment filename: ‘text1.txt’, content: ‘hello world!’ }, { // binary buffer as an attachment filename: ‘text2.txt’, content: new Buffer(‘hello world!’,’utf-8′) }, { // file on disk as an attachment filename: ‘text3.txt’, path: … Read more