Cleaning up email sending code for check project status