Error reporting for email notifications in process_submission