Adding mail option in the api generator.