papnkukn / eml-format

RFC 822 EML file format parser and builder
MIT License
88 stars 53 forks source link

How to attach a zip file to eml #24

Open mechadioz opened 3 years ago

mechadioz commented 3 years ago

I am trying to attach a zip file to eml body, I am able to add the same but not able to open it. Seems like the file is corrupted. This is how I am using to add attachment. Please help me with correcting the same.

attachments: [ { name: "MyFile.zip", contentType: "application/zip", contentDisposition: 'attachment; filename="MyFile.zip"', data: myBase64String, inline: true, }, ],