Implemented Emailing, ready for production testing