send mail, fix templates view