Implemented the send email feature