update email template to smarty (several more to go)