Troubleshooting email prodcution error