Added export event emails function