convert all the remaining email templates to smarty