Jump to content

Common code into the mails html file


Recommended Posts

Hi, I would like insert a common header/footer in the html mails files.

 

There is a way to include a 'header.tpl' file into the 'accounts.html' file located in themes/<my_theme>/mails/<my_culture>/ directory?

 

I've try with '{include file='header.tpl'}' and '{php} include('header.tpl'); {/php}' but their not working.

 

Thanks, Daniel.

Edited by r4nonE (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

HTML doesn't have an 'include' mechanism
Therefore you cannot include files (tpl, php, html) into HTML file :)

{include=MY_FILE} and {php}{/php} is a smarty code not html code

 

If you just need to add a static header/footer to your email template, then you just have to insert it straight to the *.html email template file. And remember ... you should use html <table> tag for your header and footer content so it will displayed correctly in email client (web based or desktop)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...