Email and attachments

2
I am using the "Email" module from the app-store. How can I send attachments ?
asked
2 answers
1

Attachments are currently not supported by the Email module.

If you want this, you could create a new feature request in the MXDN for this.

answered
4

The API does support attachments, so if you create on the email entity a reference set towards system.filedocument you can call in java:

        EmailModule.mail(config, htmlCode, PlainMessage, Subject, ToList, CCList, BCCList,context, __Attachments);

As you can see this also allows html email. The only trick here is that you have to modify the html code for images on send to replace mendix guids

img src="file?guid=281513631416418&;thumb=false"

to

img src="filename"

with off course filename the proper file name and also you have to attach the image files.

answered