Added error_report_email in hooks