Skip to content

MailCore.MailCore.sendMail - attachment decode issue #9

@YujinKim0624

Description

@YujinKim0624

MailCore.sendMail is working, however, the attachments (pdf or any images) comes with an error.

MailCore.sendMail({
headers: {
key: 'value'
},
from: {
...
},
to: {
..
},
subject: 'test',
body: '',
attachments: ["../../../Pdf/create_document.pdf"]
})

I simply put a file in a folder, and received an email with that file. However, got an error from the acrobat reader : Adobe Acrobat Reader could not open 'out[2].pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

I am not sure whether it brings the correct file or not. Is there any way to validate this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions