nodemailer-sendgrid icon indicating copy to clipboard operation
nodemailer-sendgrid copied to clipboard

Bad request for stream attachments

Open iamchathu opened this issue 4 years ago • 0 comments

{...
 attachments: [
      {
        filename: filename,
        content: file(),
      },
    ],
}

file is ()=>ReadStream from fs. Nodemailer documentation in example section for attachments there is example using stream. But for this it gives BAD Request error.

iamchathu avatar Mar 31 '20 13:03 iamchathu