added mails.ctp, recommited lots of code because i changed something on live and did not commit before so i include all files just to be sure