vedeepak
(Deepak Vema)
October 23, 2024, 11:05am
6
Adolfo Trinca:
$(htmlTable)
I haven’t tried fetch the data from DB and passing to email template. My is guess the parameter that you’re passing is taking as a string. Can you try below code?
#include($htmlTable)
For reference
Use Case:
In email templates, we will write HTML and CSS code to define the look and feel of emails to end users. In most cases, it would be the same code, except the body information, such as dynamic values. The rest will be the remains same across all email templates.
What if the same code is present in multiple files? It would be a little hard and time-consuming to update all emails.
Solution:
The approach I followed is to move all HTML code from the email template object and place it in …