changed email templates to php files