add confirmation mail logic in to the version