cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can i include a common header and footer in my velocity email body

Former Member
0 Likes
1,542

There is a common header.vm and footer.vm file that have the header and footer details which i have to use in more than 15 email vm body files.

Please suggest me the relevant steps to do so.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes
Former Member
0 Likes

Hi ,

As per the Apache velocity template documentation , it will support include functionality.

refer the below code sample

and refer the documentation link

Thanks,

Venki

Former Member

Thanks for your reply Venki,

But i did try the #include and #parse commands but i get the following error as resource not found.

Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'emails/email-header.vm'

BTW the header and footer files are velocity files by themselves . So i want to add the common velocity header files to my EmailBody vm file