Hello,
I'm getting an error when I'm creating new emails. I couldn't find answer anywhere.
I see no error or warning messages in my EmailTheme (this is not the default stylesheet).
Default Stylesheet shows a warning message but I don't think it is blocking email creation.
There is a warning message on the Emails Folder in UI Flows.
The highest size of my image is 489 kb. not more than 500kb which is the limitation, so there are no large images as of now. And I don't know where to debug or look for the issue.
Thanks.
Aman
Hello @Aman Devrath,
It looks like you may need to create separate theme for email. Please see this post.
https://www.outsystems.com/forums/discussion/46004/email-content-is-not-visible/
https://success.outsystems.com/documentation/11/developing_an_application/implement_application_logic/emails_in_mobile_and_reactive_web_apps/managing_emails/
Thanks,
Sachin
Thank you everyone with their suggestions. @Arun Rajput @Anubhav Rai @Andre Valadares da Silva
I solved this by creating a separate CSS for each email feature which is definitely weird since a normal web app in any other language (php, java, python, etc) do not give such information. I used to work on Laravel earlier and never got such error even when my stylesheet touched 35kb in size.
Anyways, now I have 3 separate stylesheets for each brand's emails (there are 4 emails for each brand with different layout), and 1 more stylesheet for Screens.
Thanks again.
Hi @Aman Devrath ,
In most cases internal or external CSS does not work in email template when opening it in outlook. So I would suggest to use inline CSS instead of creating theme.
Best
Arun
Hi @Arun Rajput,
It won't be feasible to use inline CSS for everything. there are a lot of elements in the email, including 3 images. I'll try something else.
Hi, @Aman Devrath,
as far as I can see It doesn't reallly look like an image issue. The message states that Your theme size is higher then 14KB and that it should be smaller.
So, You're thinking this could be a misleading message (I've seen It happens before)? Are You sure Your theme's size cannot be reduced?
Best regards!
Hi @Andre Valadares da Silva ,
I've removed extra white spaces, clubbed all repeated css but for different classes, use inbuilt classes wherever i could. But it still gives me same warning message.
Is there any other thing to remove or any other way to reduce the size?
Regards,
Sorry @Aman Devrath,
unfortunately no new ideas here.
Maybe, just to be sure the error is really caused by the size of the theme, you could create a new, simple and small theme and link it to your e-mail ui flow and see if the error stops showing up.
Again, that would just help to be sure we really understand what this error is about.
Hope you can find a solution.
Regards!
Hi @Aman Devrath ,If you are still facing issues even after trying the suggestions given by other members.Then you can also try to implement this email in the separate traditional web app and call it from your existing app when required.Regards,Anubhav