Changes to make ejs template emailable.