Good afternoon,
Everyone, I'm sharing a practical experience that can help those who work with sending emails with images in OutSystems, using Forge's CKEditor for Outlook and Gmail.
Problem
The CKEditor saves the image in the database and generates a link in the format:
/Download.aspx?GUID=1234...
In Outlook, this link was identified as a potential security risk (because of the .aspx) and the image was not displayed.
An alternative would be to convert the image to Base64 and embed it directly in the HTML, but in this case Gmail does not interpret it correctly and the images do not appear.
Solution
I created a Friendly URL (alias) in the Service Center to expose the images in the format:
/CKEditor/image/{GUID}.png
I adjusted the CKEditor's JavaScript to save and retrieve images using this new handler.
In the Download handler, I configured the FileName, Mime-Type, and left Save to Disk = No, ensuring that the images are displayed inline.