installation packages added, fixed generate html email bug