- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 11:38 AM
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,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:37 PM
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...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 11:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:28 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:37 PM
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...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:48 PM
Re: Apply Email Template in Notification Check the last one.