create provider module moving mail provider from controller