Refactoring: created Mail and SendOptions classes.