added email functionality to prod