email in production logic