correct the build so that it becomes successfull with email notification