added email sending to production