react-native-mailcore icon indicating copy to clipboard operation
react-native-mailcore copied to clipboard

MailCore.MailCore.sendMail - attachment decode issue

Open YujinKim0624 opened this issue 6 years ago • 0 comments

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?

YujinKim0624 avatar Aug 22 '19 04:08 YujinKim0624