Email Template configuration

r_daosseili
Kilo Contributor

Hello,

I was wondering if there is any possibility to configure an email template to contains only a specific header and footer, and get the body from the email notification form ?

So my email template will have a fixed header and footer and variable body which is the email notification content.

Thanks,

1 ACCEPTED SOLUTION

So templates aren't as nuanced as you're hoping.   A template will build the whole body, and doesn't distinguish between body headers, main body, and footers.


Also, it sounds like you want each notification to retain its currently defined body, which is like saying "I want to always use just a part of a template".



Only thing I can think of is to use Kalai's approach, but it requires always remembering to put the mail scripts in your notification body.   It'll look like this...



find_real_file.png


View solution in original post

10 REPLIES 10

Kalaiarasan Pus
Giga Sage

Have you considered using 'Notification Email Scripts'. this is preciously the reason it was introduced.


You can define separate scripts for header and footer and embed them using <mail_script> tag in the email notification.


Thank you for the answer Kalaiarasan.


In this case every time I want to create a new Email Notification I should include the scripts by using <mail_script> ?


Do you have any example on how to use that in my scenario knowing that I will have some images in the header and the footer?



Thank you.


So templates aren't as nuanced as you're hoping.   A template will build the whole body, and doesn't distinguish between body headers, main body, and footers.


Also, it sounds like you want each notification to retain its currently defined body, which is like saying "I want to always use just a part of a template".



Only thing I can think of is to use Kalai's approach, but it requires always remembering to put the mail scripts in your notification body.   It'll look like this...



find_real_file.png