Add email functionality to production