Removed the Main in mail class.