Attach Mendix FileDocument to email using Apache Commons Email API

0
For certain reasons I am using the Apache Commons Email API to send emails. This API provides a method to add attachments to an email, but files can only be attached by providing one of the following parameters: - DataSource - URL - PathToFile (String) I figured files within Mendix can be retrieved by URL via: http://url/file?fileID=###, but when I use this as URL for adding an attachment, I am retrieving an error about invalid URL. So, how can I attach files (uploaded within Mendix) to an email using the Apache Email API?
asked
0 answers