One useful purpose of the fetch method is to send an email based on a template. While documenting an example of this, I discovered that the {assign} tag couldn't handle variables in the value element:
{assign var="to" value="$to_firstname $to_lastname <$to_email>"}
I suppose you could call it a "new feature," but Smarty could do this already, so I'll just call this a bug fix.
If you'd like to ensure you get all emails, use the default modifier:
{assign var="to" value="$to_firstname $to_lastname <$to_email|default:'your.email@organization.com'>"}
Anyway, I'll now continue documenting how to use Dermis to send an email based on a template file.
Thursday, February 18, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment