Implemented E-mail agent as per #3