132
Views
4
Comments
[CKEditor] How to send Emails with Dynamic content - Images get blocked by email clients!
ckeditor
Web icon
Forge asset by CKEditor Team
Application Type
Traditional Web, Service
Platform Version
11.9.0.21103

Hi All, 

So my problem is sending an email that is generated by users in an application, like an email client, where images could be embedded in the email content. For that, we use CK Editor. 

When embedding images from the CK Editor the way we typically store those images is in the Database, and to display them there is a link that is a Download.aspx pages that download the content. (fairly regular technique)

If all works well, but when sending an email where the content was dynamically generated, the platform doesn't do the same job as when we simply craft an email on Service Studio with images. (where images are static resources or managed by the platform)

I think there's no clear answer to this problem, also because it varies from mail client to mail client, but is there a way to embed an image on a CK Editor or any other piece of HTML, in Outsystems, without being generated from a *.aspx page?  

The fact that my download.aspx is an aspx page, triggers all sorts of alarms in mail clients as they recognize .aspx file extensions as scripting and potentially dangerous, stripping all the images and displaying a warning on the top to open the email content on the browser (that on outlook)  

Has anybody been here? 

Thanks

UserImage.jpg
Marcin Starzyk

Hello José,

I just want to ask if you maybe find a solution to your problem. 

We are facing exactly the same case that download page is raising errors inside outlook but so far we were not able to find any good solution for this issue on our own 

2020-04-28 08-32-01
Anthony Ouwehand
Staff

Hi both, have you tried to ensure that contentType headers are set to something like 'image/jpeg'? The .aspx extension shouldn't be flagged as scripting. Lot of e-mails use .php extensions and even .jpgs which are programs underneath.

Marcin, can you share the errors you are getting?

UserImage.jpg
Marcin Starzyk

Hello Anthony,

This is the message that I put in CKE editor

And then when I receive an email I have an empty place from the image and the following message on the top of the email



Regarding content type - No I did not set anything there besides the standard settings

2023-10-31 17-31-04
Matheus Henrique Souza

Alguém conseguiu fazer isso?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.