MailTemplmate refactor, fix #169
fix webtest (quote issue)