Implemented email sending and Layout