Email Record: Optimizing Renewable Energy Management in Smart Grids Using Machine Learning