muratgozel / MIMEText

RFC-2822, RFC-2045 and RFC-2049 compliant raw email message generator.
https://muratgozel.github.io/MIMEText/
MIT License
80 stars 35 forks source link

Does not support attachments as zip files #51

Open jeremy-brooks opened 11 months ago

jeremy-brooks commented 11 months ago

I cannot find any support for adding attachments that are compressed as zip files but this is a valid option when creating a raw email string.

Have a I missed something?

muratgozel commented 7 months ago

hey @jeremy-brooks it should be:

msg.addAttachment({
    filename: 'file.zip',
    contentType: 'application/zip',
    data: '...base64 encoded data...'
})

have you tried this?