Added emailing skeleton code, buggy