Fix email sending in production.