nodemailer-sendgrid
nodemailer-sendgrid copied to clipboard
Bad request for stream attachments
{...
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.