Jump to content

Insert other variables to mail templates


Recommended Posts

  • 4 weeks later...

Just as aside as I wasted some time sorting this out, although the mail templates look like Smarty templates, they are not. The Swift mail engine uses a simple search and replace mechanism (based around str_replace) so you cannot use Smarty constructs like "{if}foo{else}bar{/if}" or loops or anything like that. Not sure why this was done but that's how it is.

That said, it probably would not be that hard to add in Smarty suppport to Swify by adjusting the "Decorator" plugin to call it.

Cheers

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...