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?
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?