Send PDF as attachment with email module

2
Is it possible to send a pdf (created from documenttemplate) with the mail module 2.1? He keeps telling me that it is no image.
asked
1 answers
3

Hi Chris,

I have found the problem. It is located in the CopyFileDocument.java file.

You can fix it by replacing the line 44:

Core.storeImageDocumentContent(this.getContext(), AttachmentObj.getMendixObject(), inputStream, 200, 200);

with:

Core.storeFileDocumentContent(this.getContext(), AttachmentObj.getMendixObject(), inputStream);

I'll try to get a new version of the Email module up tomorrow.

answered